net/http.Request.Method (field)
62 uses
net/http (current package)
client.go#L289: if resp.ContentLength > 0 && req.Method != "HEAD" {
client.go#L602: Op: urlErrorOp(req.Method),
client.go#L632: Op: urlErrorOp(reqs[0].Method),
client.go#L664: Method: redirectMethod,
client.go#L741: redirectMethod, shouldRedirect, includeBody = redirectBehavior(req.Method, resp, reqs[0])
fs.go#L423: if r.Method != "HEAD" {
fs.go#L558: if r.Method != "GET" && r.Method != "HEAD" {
fs.go#L579: if r.Method != "GET" && r.Method != "HEAD" {
fs.go#L652: if r.Method == "GET" || r.Method == "HEAD" {
h2_bundle.go#L6138: Method: rp.method,
h2_bundle.go#L6494: isHeadResp := rws.req.Method == "HEAD"
h2_bundle.go#L8426: isHead: req.Method == "HEAD",
h2_bundle.go#L9126: if req.Method != "CONNECT" {
h2_bundle.go#L9158: m := req.Method
h2_bundle.go#L9163: if req.Method != "CONNECT" {
h2_bundle.go#L9229: if http2shouldSendReqContentLength(req.Method, contentLength) {
request.go#L115: Method string
request.go#L539: return r.Method == "PRI" && len(r.Header) == 0 && r.URL.Path == "*" && r.Proto == "HTTP/2.0"
request.go#L658: } else if r.Method == "CONNECT" && r.URL.Path == "" {
request.go#L682: _, err = fmt.Fprintf(w, "%s %s HTTP/1.1\r\n", valueOrDefault(r.Method, "GET"), ruri)
request.go#L923: Method: method,
request.go#L1106: req.Method, req.RequestURI, req.Proto, ok = parseRequestLine(s)
request.go#L1110: if !validMethod(req.Method) {
request.go#L1111: return nil, badStringError("invalid method", req.Method)
request.go#L1127: justAuthority := req.Method == "CONNECT" && !strings.HasPrefix(rawurl, "/")
request.go#L1339: if r.Method == "POST" || r.Method == "PUT" || r.Method == "PATCH" {
request.go#L1545: switch valueOrDefault(r.Method, "GET") {
servemux121.go#L107: if r.Method == "CONNECT" {
server.go#L378: if cw.res.req.Method == "HEAD" {
server.go#L1060: c.lastMethod = req.Method
server.go#L1065: if req.ProtoAtLeast(1, 1) && (!haveHost || len(hosts) == 0) && !isH2Upgrade && req.Method != "CONNECT" {
server.go#L1128: req.Method == "PRI" && req.RequestURI == "*" {
server.go#L1310: isHEAD := w.req.Method == "HEAD"
server.go#L1521: if w.req.Method == "HEAD" || !bodyAllowedForStatus(code) || code == StatusNoContent {
server.go#L1741: if w.req.Method != "HEAD" && w.contentLength != -1 && w.bodyAllowed() && w.contentLength != w.written {
server.go#L2342: if !hadCT && (r.Method == "GET" || r.Method == "HEAD") {
server.go#L2348: if !hadCT && r.Method == "GET" {
server.go#L2591: if r.Method == "CONNECT" {
server.go#L2595: _, _, u := mux.matchOrRedirect(host, r.Method, path, r.URL)
server.go#L2601: n, matches, _ = mux.matchOrRedirect(r.Host, r.Method, path, nil)
server.go#L2611: n, matches, u = mux.matchOrRedirect(host, r.Method, path, r.URL)
server.go#L3206: if !sh.srv.DisableGeneralOptionsHandler && req.RequestURI == "*" && req.Method == "OPTIONS" {
transfer.go#L87: t.Method = valueOrDefault(rr.Method, "GET")
transfer.go#L113: t.Method = rr.Request.Method
transfer.go#L504: t.RequestMethod = rr.Request.Method
transfer.go#L508: t.RequestMethod = rr.Method
transport.go#L576: if req.Method != "" && !validMethod(req.Method) {
transport.go#L578: return nil, fmt.Errorf("net/http: invalid method %q", req.Method)
transport.go#L1794: Method: "CONNECT",
transport.go#L2245: hasBody := rc.treq.Request.Method != "HEAD" && resp.ContentLength != 0
transport.go#L2688: req.Method != "HEAD" {
github.com/coinbase/cdp-sdk/go
cdp.go#L54: method := strings.ToUpper(req.Method)
cdp.go#L83: if req.Method != "POST" && req.Method != "DELETE" {
cdp.go#L110: RequestMethod: req.Method,
 |
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. |