net/http.Request.ProtoAtLeast (method)
12 uses
net/http (current package)
request.go#L404: func (r *Request) ProtoAtLeast(major, minor int) bool {
server.go#L1016: if req.ProtoAtLeast(1, 1) && (!haveHost || len(hosts) == 0) && !isH2Upgrade && req.Method != "CONNECT" {
server.go#L1169: writeStatusLine(w.conn.bufw, w.req.ProtoAtLeast(1, 1), code, w.statusBuf[:])
server.go#L1345: } else if !w.req.ProtoAtLeast(1, 1) || w.wantsClose {
server.go#L1468: } else if w.req.ProtoAtLeast(1, 1) {
server.go#L1500: if !w.req.ProtoAtLeast(1, 0) {
server.go#L1512: if w.req.ProtoAtLeast(1, 1) {
server.go#L1517: writeStatusLine(w.conn.bufw, w.req.ProtoAtLeast(1, 1), code, w.statusBuf[:])
server.go#L1983: if req.ProtoAtLeast(1, 1) && req.ContentLength != 0 {
server.go#L2507: if r.ProtoAtLeast(1, 1) {
transport.go#L2607: if req.ProtoAtLeast(1, 1) && req.Body != nil && req.expectsContinue() {
nhooyr.io/websocket
accept.go#L163: if !r.ProtoAtLeast(1, 1) {
|
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. |