net/http.Request.Method (field)
172 uses
net/http (current package)
client.go#L289: if resp.ContentLength > 0 && req.Method != "HEAD" {
client.go#L599: Op: urlErrorOp(req.Method),
client.go#L629: Op: urlErrorOp(reqs[0].Method),
client.go#L661: Method: redirectMethod,
client.go#L738: redirectMethod, shouldRedirect, includeBodyOnHop = 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#L6418: Method: rp.method,
h2_bundle.go#L6774: isHeadResp := rws.req.Method == "HEAD"
h2_bundle.go#L8776: isHead: req.Method == "HEAD",
h2_bundle.go#L8925: if req.Method == "CONNECT" && req.Header.Get(":protocol") != "" {
h2_bundle.go#L9533: if req.Method == "CONNECT" && protocol == "" {
h2_bundle.go#L9535: } else if protocol != "" && req.Method != "CONNECT" {
h2_bundle.go#L9572: m := req.Method
h2_bundle.go#L9649: if http2shouldSendReqContentLength(req.Method, contentLength) {
request.go#L116: Method string
request.go#L530: return r.Method == "PRI" && len(r.Header) == 0 && r.URL.Path == "*" && r.Proto == "HTTP/2.0"
request.go#L649: } else if r.Method == "CONNECT" && r.URL.Path == "" {
request.go#L673: _, err = fmt.Fprintf(w, "%s %s HTTP/1.1\r\n", valueOrDefault(r.Method, "GET"), ruri)
request.go#L914: Method: method,
request.go#L1097: req.Method, req.RequestURI, req.Proto, ok = parseRequestLine(s)
request.go#L1101: if !validMethod(req.Method) {
request.go#L1102: return nil, badStringError("invalid method", req.Method)
request.go#L1118: justAuthority := req.Method == "CONNECT" && !strings.HasPrefix(rawurl, "/")
request.go#L1330: if r.Method == "POST" || r.Method == "PUT" || r.Method == "PATCH" {
request.go#L1536: switch valueOrDefault(r.Method, "GET") {
servemux121.go#L107: if r.Method == "CONNECT" {
server.go#L378: if cw.res.req.Method == "HEAD" {
server.go#L614: if !w.cw.chunking && w.bodyAllowed() && w.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#L2416: if !hadCT && (r.Method == "GET" || r.Method == "HEAD") {
server.go#L2422: if !hadCT && r.Method == "GET" {
server.go#L2666: if r.Method == "CONNECT" {
server.go#L2670: _, _, u := mux.matchOrRedirect(host, r.Method, path, r.URL)
server.go#L2676: n, matches, _ = mux.matchOrRedirect(r.Host, r.Method, path, nil)
server.go#L2686: n, matches, u = mux.matchOrRedirect(host, r.Method, path, r.URL)
server.go#L3297: if !sh.srv.DisableGeneralOptionsHandler && req.RequestURI == "*" && req.Method == "OPTIONS" {
transfer.go#L88: t.Method = valueOrDefault(rr.Method, "GET")
transfer.go#L114: t.Method = rr.Request.Method
transfer.go#L505: t.RequestMethod = rr.Request.Method
transfer.go#L509: t.RequestMethod = rr.Method
transport.go#L628: if req.Method != "" && !validMethod(req.Method) {
transport.go#L630: return nil, fmt.Errorf("net/http: invalid method %q", req.Method)
transport.go#L1846: Method: "CONNECT",
transport.go#L2315: hasBody := rc.treq.Request.Method != "HEAD" && resp.ContentLength != 0
transport.go#L2759: req.Method != "HEAD" {
net/http/httputil
dump.go#L243: fmt.Fprintf(&b, "%s %s HTTP/%d.%d\r\n", valueOrDefault(req.Method, "GET"),
net/http/pprof
pprof.go#L210: if r.Method == "POST" {
github.com/aws/aws-sdk-go-v2/aws/signer/v4
presign_middleware.go#L85: Method: httpReq.Method,
presign_middleware.go#L122: Method: httpReq.Method,
v4.go#L191: req.Method,
github.com/aws/aws-sdk-go-v2/internal/v4a
presign_middleware.go#L75: Method: httpReq.Method,
presign_middleware.go#L112: Method: httpReq.Method,
v4a.go#L319: req.Method,
github.com/aws/aws-sdk-go-v2/service/s3
serializers.go#L45: request.Method = "DELETE"
serializers.go#L126: request.Method = "POST"
serializers.go#L266: request.Method = "PUT"
serializers.go#L532: request.Method = "PUT"
serializers.go#L654: request.Method = "POST"
serializers.go#L865: request.Method = "DELETE"
serializers.go#L928: request.Method = "DELETE"
serializers.go#L995: request.Method = "DELETE"
serializers.go#L1058: request.Method = "DELETE"
serializers.go#L1121: request.Method = "DELETE"
serializers.go#L1183: request.Method = "DELETE"
serializers.go#L1250: request.Method = "DELETE"
serializers.go#L1313: request.Method = "DELETE"
serializers.go#L1380: request.Method = "DELETE"
serializers.go#L1443: request.Method = "DELETE"
serializers.go#L1506: request.Method = "DELETE"
serializers.go#L1569: request.Method = "DELETE"
serializers.go#L1632: request.Method = "DELETE"
serializers.go#L1695: request.Method = "DELETE"
serializers.go#L1786: request.Method = "POST"
serializers.go#L1893: request.Method = "DELETE"
serializers.go#L1969: request.Method = "DELETE"
serializers.go#L2032: request.Method = "GET"
serializers.go#L2095: request.Method = "GET"
serializers.go#L2158: request.Method = "GET"
serializers.go#L2225: request.Method = "GET"
serializers.go#L2288: request.Method = "GET"
serializers.go#L2351: request.Method = "GET"
serializers.go#L2413: request.Method = "GET"
serializers.go#L2480: request.Method = "GET"
serializers.go#L2543: request.Method = "GET"
serializers.go#L2606: request.Method = "GET"
serializers.go#L2669: request.Method = "GET"
serializers.go#L2736: request.Method = "GET"
serializers.go#L2799: request.Method = "GET"
serializers.go#L2862: request.Method = "GET"
serializers.go#L2925: request.Method = "GET"
serializers.go#L2988: request.Method = "GET"
serializers.go#L3051: request.Method = "GET"
serializers.go#L3114: request.Method = "GET"
serializers.go#L3177: request.Method = "GET"
serializers.go#L3240: request.Method = "GET"
serializers.go#L3303: request.Method = "GET"
serializers.go#L3457: request.Method = "GET"
serializers.go#L3538: request.Method = "GET"
serializers.go#L3658: request.Method = "GET"
serializers.go#L3739: request.Method = "GET"
serializers.go#L3802: request.Method = "GET"
serializers.go#L3883: request.Method = "GET"
serializers.go#L3964: request.Method = "GET"
serializers.go#L4041: request.Method = "GET"
serializers.go#L4104: request.Method = "HEAD"
serializers.go#L4167: request.Method = "HEAD"
serializers.go#L4297: request.Method = "GET"
serializers.go#L4364: request.Method = "GET"
serializers.go#L4426: request.Method = "GET"
serializers.go#L4493: request.Method = "GET"
serializers.go#L4560: request.Method = "GET"
serializers.go#L4605: request.Method = "GET"
serializers.go#L4692: request.Method = "GET"
serializers.go#L4780: request.Method = "GET"
serializers.go#L4876: request.Method = "GET"
serializers.go#L4963: request.Method = "GET"
serializers.go#L5067: request.Method = "PUT"
serializers.go#L5159: request.Method = "PUT"
serializers.go#L5286: request.Method = "PUT"
serializers.go#L5377: request.Method = "PUT"
serializers.go#L5474: request.Method = "PUT"
serializers.go#L5571: request.Method = "PUT"
serializers.go#L5657: request.Method = "PUT"
serializers.go#L5748: request.Method = "PUT"
serializers.go#L5840: request.Method = "PUT"
serializers.go#L5937: request.Method = "PUT"
serializers.go#L6028: request.Method = "PUT"
serializers.go#L6120: request.Method = "PUT"
serializers.go#L6212: request.Method = "PUT"
serializers.go#L6302: request.Method = "PUT"
serializers.go#L6404: request.Method = "PUT"
serializers.go#L6501: request.Method = "PUT"
serializers.go#L6598: request.Method = "PUT"
serializers.go#L6700: request.Method = "PUT"
serializers.go#L6797: request.Method = "PUT"
serializers.go#L7050: request.Method = "PUT"
serializers.go#L7195: request.Method = "PUT"
serializers.go#L7310: request.Method = "PUT"
serializers.go#L7417: request.Method = "PUT"
serializers.go#L7537: request.Method = "PUT"
serializers.go#L7652: request.Method = "PUT"
serializers.go#L7749: request.Method = "POST"
serializers.go#L7859: request.Method = "POST"
serializers.go#L8043: request.Method = "PUT"
serializers.go#L8190: request.Method = "PUT"
serializers.go#L8340: request.Method = "POST"
go.uber.org/zap
http_handler.go#L81: switch r.Method {
golang.org/x/net/http2
server.go#L2303: Method: rp.method,
server.go#L2659: isHeadResp := rws.req.Method == "HEAD"
transport.go#L1289: isHead: req.Method == "HEAD",
transport.go#L1988: if req.Method != "CONNECT" {
transport.go#L2020: m := req.Method
transport.go#L2025: if req.Method != "CONNECT" {
transport.go#L2091: if shouldSendReqContentLength(req.Method, contentLength) {
google.golang.org/grpc/internal/transport
handler_server.go#L58: if r.Method != "POST" {
handler_server.go#L59: msg := fmt.Sprintf("invalid gRPC request method %q", r.Method)
proxy.go#L81: Method: http.MethodConnect,