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
David Anderson e1c1d47991 tsweb: memoize the string forms of HTTP response codes.
Saves 1-2 allocs per HTTP request after warmup, thanks to
avoiding strconv and fmt.

Signed-off-by: David Anderson <danderson@tailscale.com>
3 years ago
..
debug.go all: use any instead of interface{} 3 years ago
debug_test.go all: use any instead of interface{} 3 years ago
log.go tsweb: use a ResponseWriter wrapper to log more accurately. 5 years ago
tsweb.go tsweb: memoize the string forms of HTTP response codes. 3 years ago
tsweb_test.go tsweb: remove JSONHandlerFunc 3 years ago