felixge / httpsnoop

Package httpsnoop provides an easy way to capture http related metrics (i.e. response time, bytes written, and http status code) from your application's http.Handlers.

Home Page:https://godoc.org/github.com/felixge/httpsnoop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not possible to get w.(httpPusher)

krusche-company opened this issue · comments

Hi, I am using http2 server (go1.8) with your library. But seems responseWriter is changed, so I can not get w.(httpPusher) and use http2 Push feature

Yeah, I'll need to add support for the new interface to this library. I'll try to get to it very soon. But I'd also be happy to accept a patch if somebody beats me to it :)

@krusche-company this turned out to be quite a little effort, but I think it turned out nicely. Please try the latest version and let me know how it goes.