net/http.Request.Method (field)
166 uses
net/http (current package)
client.go#L282: if resp.ContentLength > 0 && req.Method != "HEAD" {
client.go#L605: Op: urlErrorOp(req.Method),
client.go#L633: Op: urlErrorOp(reqs[0].Method),
client.go#L663: Method: redirectMethod,
client.go#L738: redirectMethod, shouldRedirect, includeBody = redirectBehavior(req.Method, resp, reqs[0])
fs.go#L336: if r.Method != "HEAD" {
fs.go#L471: if r.Method != "GET" && r.Method != "HEAD" {
fs.go#L492: if r.Method != "GET" && r.Method != "HEAD" {
fs.go#L564: if r.Method == "GET" || r.Method == "HEAD" {
h2_bundle.go#L5852: Method: rp.method,
h2_bundle.go#L6156: isHeadResp := rws.req.Method == "HEAD"
h2_bundle.go#L7819: isHead: req.Method == "HEAD",
h2_bundle.go#L8441: if req.Method != "CONNECT" {
h2_bundle.go#L8477: m := req.Method
h2_bundle.go#L8482: if req.Method != "CONNECT" {
h2_bundle.go#L8548: if http2shouldSendReqContentLength(req.Method, contentLength) {
request.go#L110: Method string
request.go#L497: return r.Method == "PRI" && len(r.Header) == 0 && r.URL.Path == "*" && r.Proto == "HTTP/2.0"
request.go#L587: } else if r.Method == "CONNECT" && r.URL.Path == "" {
request.go#L611: _, err = fmt.Fprintf(w, "%s %s HTTP/1.1\r\n", valueOrDefault(r.Method, "GET"), ruri)
request.go#L881: Method: method,
request.go#L1040: req.Method, req.RequestURI, req.Proto, ok = parseRequestLine(s)
request.go#L1044: if !validMethod(req.Method) {
request.go#L1045: return nil, badStringError("invalid method", req.Method)
request.go#L1061: justAuthority := req.Method == "CONNECT" && !strings.HasPrefix(rawurl, "/")
request.go#L1259: if r.Method == "POST" || r.Method == "PUT" || r.Method == "PATCH" {
request.go#L1417: switch valueOrDefault(r.Method, "GET") {
server.go#L372: if cw.res.req.Method == "HEAD" {
server.go#L1000: c.lastMethod = req.Method
server.go#L1005: if req.ProtoAtLeast(1, 1) && (!haveHost || len(hosts) == 0) && !isH2Upgrade && req.Method != "CONNECT" {
server.go#L1068: req.Method == "PRI" && req.RequestURI == "*" {
server.go#L1229: isHEAD := w.req.Method == "HEAD"
server.go#L1429: if w.req.Method == "HEAD" || !bodyAllowedForStatus(code) || code == StatusNoContent {
server.go#L1654: if w.req.Method != "HEAD" && w.contentLength != -1 && w.bodyAllowed() && w.contentLength != w.written {
server.go#L2187: if !hadCT && (r.Method == "GET" || r.Method == "HEAD") {
server.go#L2193: if !hadCT && r.Method == "GET" {
server.go#L2401: if r.Method == "CONNECT" {
server.go#L2900: if req.RequestURI == "*" && req.Method == "OPTIONS" {
transfer.go#L86: t.Method = valueOrDefault(rr.Method, "GET")
transfer.go#L112: t.Method = rr.Request.Method
transfer.go#L498: t.RequestMethod = rr.Request.Method
transfer.go#L502: t.RequestMethod = rr.Method
transport.go#L552: if req.Method != "" && !validMethod(req.Method) {
transport.go#L554: return nil, fmt.Errorf("net/http: invalid method %q", req.Method)
transport.go#L1673: Method: "CONNECT",
transport.go#L2133: hasBody := rc.req.Method != "HEAD" && resp.ContentLength != 0
transport.go#L2557: 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#L192: 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#L2255: Method: rp.method,
server.go#L2557: isHeadResp := rws.req.Method == "HEAD"
transport.go#L1219: isHead: req.Method == "HEAD",
transport.go#L1849: if req.Method != "CONNECT" {
transport.go#L1886: m := req.Method
transport.go#L1891: if req.Method != "CONNECT" {
transport.go#L1957: 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,