const net/http.StatusSwitchingProtocols
8 uses
net/http (current package)
response.go#L363: return code == StatusSwitchingProtocols && isProtocolSwitchHeader(h)
server.go#L1172: if code >= 100 && code <= 199 && code != StatusSwitchingProtocols {
status.go#L11: StatusSwitchingProtocols = 101 // RFC 9110, 15.2.2
status.go#L85: case StatusSwitchingProtocols:
transport.go#L2532: is1xxNonTerminal := is1xx && resCode != StatusSwitchingProtocols
github.com/coder/websocket
accept.go#L151: w.WriteHeader(http.StatusSwitchingProtocols)
dial.go#L243: if resp.StatusCode != http.StatusSwitchingProtocols {
dial.go#L244: return nil, fmt.Errorf("expected handshake response status code %v but got %v", http.StatusSwitchingProtocols, resp.StatusCode)
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |