const net/http.StatusSwitchingProtocols
8 uses
	net/http (current package)
		response.go#L363: 	return code == StatusSwitchingProtocols && isProtocolSwitchHeader(h)
		server.go#L1161: 	if code >= 100 && code <= 199 && code != StatusSwitchingProtocols {
		status.go#L11: 	StatusSwitchingProtocols = 101 // RFC 9110, 15.2.2
		status.go#L85: 	case StatusSwitchingProtocols:
		transport.go#L2330: 		is1xxNonTerminal := is1xx && resCode != StatusSwitchingProtocols
	nhooyr.io/websocket
		accept.go#L131: 	w.WriteHeader(http.StatusSwitchingProtocols)
		dial.go#L226: 	if resp.StatusCode != http.StatusSwitchingProtocols {
		dial.go#L227: 		return nil, fmt.Errorf("expected handshake response status code %v but got %v", http.StatusSwitchingProtocols, resp.StatusCode)
|  | The pages are generated with Golds v0.6.7. (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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |