net/http.Request.Proto (field)
9 uses
net/http (current package)
clientconn.go#L141: Proto: "HTTP/1.1",
h2_bundle.go#L6309: Proto: "HTTP/2.0",
request.go#L137: Proto string // "HTTP/1.0"
request.go#L530: return r.Method == "PRI" && len(r.Header) == 0 && r.URL.Path == "*" && r.Proto == "HTTP/2.0"
request.go#L916: Proto: "HTTP/1.1",
request.go#L1097: req.Method, req.RequestURI, req.Proto, ok = parseRequestLine(s)
request.go#L1105: if req.ProtoMajor, req.ProtoMinor, ok = ParseHTTPVersion(req.Proto); !ok {
request.go#L1106: return nil, badStringError("malformed HTTP version", req.Proto)
github.com/coder/websocket
accept.go#L186: return http.StatusUpgradeRequired, fmt.Errorf("WebSocket protocol violation: handshake request must be at least HTTP/1.1: %q", r.Proto)
 |
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. |