net/http.Request.ProtoAtLeast (method)
11 uses
net/http (current package)
request.go#L426: func (r *Request) ProtoAtLeast(major, minor int) bool {
server.go#L1065: if req.ProtoAtLeast(1, 1) && (!haveHost || len(hosts) == 0) && !isH2Upgrade && req.Method != "CONNECT" {
server.go#L1217: writeStatusLine(w.conn.bufw, w.req.ProtoAtLeast(1, 1), code, w.statusBuf[:])
server.go#L1393: } else if !w.req.ProtoAtLeast(1, 1) || w.wantsClose {
server.go#L1527: } else if w.req.ProtoAtLeast(1, 1) {
server.go#L1559: if !w.req.ProtoAtLeast(1, 0) {
server.go#L1571: if w.req.ProtoAtLeast(1, 1) {
server.go#L1576: writeStatusLine(w.conn.bufw, w.req.ProtoAtLeast(1, 1), code, w.statusBuf[:])
server.go#L2066: if req.ProtoAtLeast(1, 1) && req.ContentLength != 0 {
server.go#L2735: if r.ProtoAtLeast(1, 1) {
transport.go#L2706: if req.ProtoAtLeast(1, 1) && req.Body != nil && req.expectsContinue() {
 |
The pages are generated with Golds v0.7.6. (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. |