net/http.Request.Method (field)
56 uses
net/http (current package)
client.go#L281: if resp.ContentLength > 0 && req.Method != "HEAD" {
client.go#L597: Op: urlErrorOp(req.Method),
client.go#L625: Op: urlErrorOp(reqs[0].Method),
client.go#L655: Method: redirectMethod,
client.go#L731: 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#L5672: Method: rp.method,
h2_bundle.go#L5976: isHeadResp := rws.req.Method == "HEAD"
h2_bundle.go#L7564: req.Method != "HEAD" {
h2_bundle.go#L7986: if req.Method != "CONNECT" {
h2_bundle.go#L8022: m := req.Method
h2_bundle.go#L8027: if req.Method != "CONNECT" {
h2_bundle.go#L8091: if http2shouldSendReqContentLength(req.Method, contentLength) {
h2_bundle.go#L8533: isHead := cs.req.Method == "HEAD"
h2_bundle.go#L8738: if cs.req.Method == "HEAD" && len(data) > 0 {
request.go#L109: Method string
request.go#L496: return r.Method == "PRI" && len(r.Header) == 0 && r.URL.Path == "*" && r.Proto == "HTTP/2.0"
request.go#L586: } else if r.Method == "CONNECT" && r.URL.Path == "" {
request.go#L610: _, err = fmt.Fprintf(w, "%s %s HTTP/1.1\r\n", valueOrDefault(r.Method, "GET"), ruri)
request.go#L878: Method: method,
request.go#L1038: req.Method, req.RequestURI, req.Proto, ok = parseRequestLine(s)
request.go#L1042: if !validMethod(req.Method) {
request.go#L1043: return nil, badStringError("invalid method", req.Method)
request.go#L1059: justAuthority := req.Method == "CONNECT" && !strings.HasPrefix(rawurl, "/")
request.go#L1254: if r.Method == "POST" || r.Method == "PUT" || r.Method == "PATCH" {
request.go#L1410: switch valueOrDefault(r.Method, "GET") {
server.go#L372: if cw.res.req.Method == "HEAD" {
server.go#L998: c.lastMethod = req.Method
server.go#L1003: if req.ProtoAtLeast(1, 1) && (!haveHost || len(hosts) == 0) && !isH2Upgrade && req.Method != "CONNECT" {
server.go#L1069: req.Method == "PRI" && req.RequestURI == "*" {
server.go#L1230: isHEAD := w.req.Method == "HEAD"
server.go#L1430: if w.req.Method == "HEAD" || !bodyAllowedForStatus(code) {
server.go#L1654: if w.req.Method != "HEAD" && w.contentLength != -1 && w.bodyAllowed() && w.contentLength != w.written {
server.go#L2172: if !hadCT && (r.Method == "GET" || r.Method == "HEAD") {
server.go#L2178: if !hadCT && r.Method == "GET" {
server.go#L2386: if r.Method == "CONNECT" {
server.go#L2884: if req.RequestURI == "*" && req.Method == "OPTIONS" {
transfer.go#L85: t.Method = valueOrDefault(rr.Method, "GET")
transfer.go#L111: t.Method = rr.Request.Method
transfer.go#L496: t.RequestMethod = rr.Request.Method
transfer.go#L500: t.RequestMethod = rr.Method
transport.go#L550: if req.Method != "" && !validMethod(req.Method) {
transport.go#L552: return nil, fmt.Errorf("net/http: invalid method %q", req.Method)
transport.go#L1666: Method: "CONNECT",
transport.go#L2123: hasBody := rc.req.Method != "HEAD" && resp.ContentLength != 0
transport.go#L2547: req.Method != "HEAD" {