tailscale/control/controlhttp
Brad Fitzpatrick c3306bfd15 control/controlhttp/controlhttpserver: split out Accept to its own package
Otherwise all the clients only using control/controlhttp for the
ts2021 HTTP client were also pulling in WebSocket libraries, as the
server side always needs to speak websockets, but only GOOS=js clients
speak it.

This doesn't yet totally remove the websocket dependency on Linux because
Linux has a envknob opt-in to act like GOOS=js for manual testing and force
the use of WebSockets for DERP only (not control). We can put that behind
a build tag in a future change to eliminate the dep on all GOOSes.

Updates #1278

Change-Id: I4f60508f4cad52bf8c8943c8851ecee506b7ebc9
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2024-11-07 22:29:41 -08:00
..
controlhttpcommon control/controlhttp/controlhttpserver: split out Accept to its own package 2024-11-07 22:29:41 -08:00
controlhttpserver control/controlhttp/controlhttpserver: split out Accept to its own package 2024-11-07 22:29:41 -08:00
client_common.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
client_js.go go.{mod,sum}: migrate from nhooyr.io/websocket to github.com/coder/websocket 2024-08-14 21:23:49 -07:00
client.go control/controlhttp/controlhttpserver: split out Accept to its own package 2024-11-07 22:29:41 -08:00
constants.go control/controlhttp/controlhttpserver: split out Accept to its own package 2024-11-07 22:29:41 -08:00
http_test.go control/controlhttp/controlhttpserver: split out Accept to its own package 2024-11-07 22:29:41 -08:00