const net/http.StatusSwitchingProtocols
5 uses
net/http (current package)
response.go#L364: return code == StatusSwitchingProtocols && isProtocolSwitchHeader(h)
status.go#L11: StatusSwitchingProtocols = 101 // RFC 7231, 6.2.2
status.go#L81: StatusSwitchingProtocols: "Switching Protocols",
transport.go#L2295: is1xxNonTerminal := is1xx && resCode != StatusSwitchingProtocols
net/http/httputil
reverseproxy.go#L295: if res.StatusCode == http.StatusSwitchingProtocols {
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |