On Sat, Mar 14, 2020 at 6:39 PM 'Benjamin' via golang-nuts
<golang-nuts@googlegroups.com> wrote:
>
> I don’t need to read the stackoverflow. And I don’t know martini.
> Middlewares and Handler are all can break the pipeline of http request.
> If martini is not designed like this, it is not well designed. Maybe the 
> authors of martini do not have real production software expriences.
> Big companies like google likes employing famous university graduated 
> students.
> I find even some famous researchers still like students. Event in the go team.
> They have graduated from famous university for many years, but still think 
> and do like students.
> Go programming language should be maintained  by engineers not scientists or 
> researchers.

Please be charitable.  When people ask for help, please try to help if
you can.  Please follow the code of conduct, which you can read at
https://golang.org/conduct.  Thanks.

(Note that Martini was not written or maintained by the Go team.)

Ian


> On Mar 15, 2020, at 06:18, a...@oresoftware.com wrote:
>
> I am looking for answer to this SO overflow question:
>
> https://stackoverflow.com/questions/60679922/how-to-break-out-of-martini-middleware
>
> In essence, I am wondering how to send the response, and *not* invoke any of 
> the subsequent middleware that is declared as part of the chain for that 
> matching request.
> There is a boolean flag on http.Response called http.Response.Close.
>
> It's possible that martini reads from http.Response.Close to see if it should 
> invoke the remaining middleware or not, but if so that seems like an 
> imperfect practice/methodology.
>
> -alex
>
> --
> You received this message because you are subscribed to the Google Groups 
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/b0dbef78-8d0a-49c7-8feb-b3f96ef377ea%40googlegroups.com.
>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/A3BB016C-BAC3-4B95-AB4E-56B4A2D50D58%40icloud.com.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcXtiN%3DEWXTRRwxnfk4JFfdZuhLbi76etczddORTh_riOg%40mail.gmail.com.

Reply via email to