{"modulePath":"tailscale.com","version":"v1.90.8","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package controlhttpserver\n\nPackage controlhttpserver contains the HTTP server side of the ts2021 control protocol.\n\n## Functions\n\n```go\nfunc AcceptHTTP(ctx context.Context, w http.ResponseWriter, r *http.Request, private key.MachinePrivate, earlyWrite func(protocolVersion int, w io.Writer) error) (*controlbase.Conn, error)\n```\nAcceptHTTP upgrades the HTTP request given by w and r into a Tailscale control protocol base transport connection.\n\nAcceptHTTP always writes an HTTP response to w. The caller must not attempt their own response after calling AcceptHTTP.\n\nearlyWrite optionally specifies a func to write to the noise connection (encrypted). It receives the negotiated version and a writer to write to, if desired.\n\n","path":"tailscale.com/control/controlhttp/controlhttpserver","name":"controlhttpserver","synopsis":"Package controlhttpserver contains the HTTP server side of the ts2021 control protocol.","isRedistributable":true}
