You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
4 years ago
..
jsonhandler.go tsweb: when unwrapping HTTPError, record the user-facing message also in the log 4 years ago
jsonhandler_test.go tsweb: make JSONHandlerFunc implement ReturnHandler, not http.Handler 4 years ago
log.go tsweb: use a ResponseWriter wrapper to log more accurately. 5 years ago
tsweb.go tsweb: add StatusCodeCounters to HandlerOptions 4 years ago
tsweb_test.go tsweb: add StdHandlerOpts that accepts an options struct 4 years ago