tailscale/tsweb
Josh Bleecher Snyder 3b46655dbb tsweb: add StatusCodeCounters to HandlerOptions
This lets servers using tsweb register expvars
that will track the number of requests ending
in 200s/300s/400s/500s.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2020-10-30 11:07:57 -07:00
..
jsonhandler.go tsweb: when unwrapping HTTPError, record the user-facing message also in the log 2020-09-17 10:12:48 -04:00
jsonhandler_test.go tsweb: make JSONHandlerFunc implement ReturnHandler, not http.Handler 2020-09-17 09:07:32 -04:00
log.go tsweb: use a ResponseWriter wrapper to log more accurately. 2020-03-19 20:11:07 -07:00
tsweb.go tsweb: add StatusCodeCounters to HandlerOptions 2020-10-30 11:07:57 -07:00
tsweb_test.go tsweb: add StdHandlerOpts that accepts an options struct 2020-10-30 11:07:57 -07:00