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
James 'zofrex' Sanderson 3ef9787379
tsweb: add Unwrap to loggingResponseWriter for ResponseController (#18195)
The new http.ResponseController type added in Go 1.20:
https://go.dev/doc/go1.20#http_responsecontroller requires ResponseWriters
that are wrapping the original passed to ServeHTTP to implement an Unwrap
method: https://pkg.go.dev/net/http#NewResponseController

With this in place, it is possible to call methods such as Flush and
SetReadDeadline on a loggingResponseWriter without needing to implement them
there ourselves.

Updates tailscale/corp#34763
Updates tailscale/corp#34813

Signed-off-by: James Sanderson <jsanderson@tailscale.com>
5 days ago
..
promvarz scripts/check_license_headers.sh: delete, rewrite as a Go test 6 months ago
varz tsweb/varz: add support for ShardedInt metrics 2 months ago
debug.go tsweb: don't hook up pprof handlers in javascript builds 8 months ago
debug_test.go all: update copyright and license headers 3 years ago
log.go tsweb: rename AccessLogRecord's When to Time 2 years ago
pprof_default.go tsd: wire up the event bus to tailscaled 8 months ago
pprof_js.go tsd: wire up the event bus to tailscaled 8 months ago
request_id.go tsweb: change RequestID format to have a date in it 1 year ago
tsweb.go tsweb: add Unwrap to loggingResponseWriter for ResponseController (#18195) 5 days ago
tsweb_test.go tsweb: change RequestID format to have a date in it 1 year ago