Tw
c64cf218b0
http.CloseNotifier implementation for http.ResponseWriter wrapper
...
Signed-off-by: Tw <tw19881113@gmail.com>
2016-04-11 14:10:33 +08:00
Matt Holt
6a7b777f14
panic if not a Flusher
...
Caddy recovers panics that occur in the middleware stack so this is not a risk to process termination. This way is also preferable to hiding the error. See 3faad41b43 (commitcomment-17035158)
2016-04-09 22:11:36 -06:00
Matthew Holt
3faad41b43
middleware: ResponseRecorder now is an http.Flusher ( fixes #677 )
...
Flush every 250ms. This should keep latency somewhat low but there is
still buffering; maybe in the future we can make this configurable.
2016-04-09 00:17:15 -06:00
Matthew Holt
f23d8cb37f
Add {upstream} placeholder when proxy middleware is used ( closes #531 )
...
Middlewares can now make their own placeholders that may be useful in
logging, on a per-request basis. Proxy is the first one to do this.
2016-03-20 21:56:13 -06:00
Shawn Smith
e958686ae4
capitalize struct name in comment
2016-03-11 23:16:28 +09:00
Matthew Holt
05957b4965
gzip: Implement http.Hijacker ( fixes #635 )
2016-02-24 12:23:50 -07:00
Benoit Benedetti
bec130a563
Recorder: Exporting ResponseRecorder #614
2016-02-20 23:10:04 +01:00
Tw
e79a88856a
let middleware.responseRecorder be a http.Hijacker
...
Signed-off-by: Tw <tw19881113@gmail.com>
2015-06-12 11:42:28 +08:00
Matthew Holt
95dce5cdfc
Latency now available with recorder and replacer
2015-04-23 13:35:56 -06:00
Matthew Holt
8471c2d9d8
Updated docs; renamed a couple utility files
2015-01-29 22:52:21 -07:00