summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/controlhttpserver/controlhttpserver.go
diff options
context:
space:
mode:
authorJoe Tsai <joetsai@digital-static.net>2024-12-05 15:50:24 -0800
committerGitHub <noreply@github.com>2024-12-05 15:50:24 -0800
commita482dc037bf6d22624e8750ef889f8e025da8a6e (patch)
tree50b9d454b0e2ab9cd28813df0be738991c3212d4 /control/controlhttp/controlhttpserver/controlhttpserver.go
parent66aa77416744037baec93206ae212012a2314f83 (diff)
downloadtailscale-a482dc037bf6d22624e8750ef889f8e025da8a6e.tar.xz
tailscale-a482dc037bf6d22624e8750ef889f8e025da8a6e.zip
logpolicy: cleanup options API and allow setting http.Client (#11503)
This package grew organically over time and is an awful mix of explicitly declared options and globally set parameters via environment variables and other subtle effects. Add a new Options and TransportOptions type to allow for the creation of a Policy or http.RoundTripper with some set of options. The options struct avoids the need to add yet more NewXXX functions for every possible combination of ordered arguments. The goal of this refactor is to allow specifying the http.Client to use with the Policy. Updates tailscale/corp#18177 Signed-off-by: Joe Tsai <joetsai@digital-static.net>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions