net/http.Request.Method (field)

99 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" {

	net/http/httputil
		dump.go#L243: 	fmt.Fprintf(&b, "%s %s HTTP/%d.%d\r\n", valueOrDefault(req.Method, "GET"),

	cloud.google.com/go/errorreporting
		errors.go#L186: 				Method:    r.Method,

	cloud.google.com/go/logging
		logging.go#L669: 		RequestMethod:                  r.Request.Method,

	github.com/aws/aws-sdk-go/aws/signer/v4
		v4.go#L663: 		ctx.Request.Method,

	github.com/aws/aws-sdk-go/private/protocol/query
		build.go#L29: 		r.HTTPRequest.Method = "POST"
		build.go#L33: 		r.HTTPRequest.Method = "GET"

	github.com/evanw/esbuild/pkg/api
		serve_other.go#L91: 			Method:        req.Method,
		serve_other.go#L118: 	if req.Method == "GET" && strings.HasPrefix(req.URL.Path, "/") {

	github.com/prometheus/client_golang/prometheus/promhttp
		instrument_client.go#L66: 			counter.With(labels(code, method, r.Method, resp.StatusCode)).Inc()
		instrument_client.go#L95: 			obs.With(labels(code, method, r.Method, resp.StatusCode)).Observe(time.Since(start).Seconds())
		instrument_server.go#L70: 			obs.With(labels(code, method, r.Method, d.Status())).Observe(time.Since(now).Seconds())
		instrument_server.go#L77: 		obs.With(labels(code, method, r.Method, 0)).Observe(time.Since(now).Seconds())
		instrument_server.go#L101: 			counter.With(labels(code, method, r.Method, d.Status())).Inc()
		instrument_server.go#L107: 		counter.With(labels(code, method, r.Method, 0)).Inc()
		instrument_server.go#L135: 			obs.With(labels(code, method, r.Method, status)).Observe(time.Since(now).Seconds())
		instrument_server.go#L165: 			obs.With(labels(code, method, r.Method, d.Status())).Observe(float64(size))
		instrument_server.go#L172: 		obs.With(labels(code, method, r.Method, 0)).Observe(float64(size))
		instrument_server.go#L197: 		obs.With(labels(code, method, r.Method, d.Status())).Observe(float64(d.Written()))
		instrument_server.go#L304: 	s += len(r.Method)

	go.opencensus.io/plugin/ochttp
		client_stats.go#L41: 		tag.Upsert(KeyClientMethod, req.Method),
		client_stats.go#L42: 		tag.Upsert(Method, req.Method))
		client_stats.go#L64: 		if req.Method != "HEAD" {
		server.go#L153: 		tag.Upsert(Method, r.Method))
		trace.go#L161: 		trace.StringAttribute(MethodAttribute, r.Method),

	golang.org/x/net/http2
		server.go#L2117: 		Method:     rp.method,
		server.go#L2421: 	isHeadResp := rws.req.Method == "HEAD"
		transport.go#L1061: 		req.Method != "HEAD" {
		transport.go#L1483: 	if req.Method != "CONNECT" {
		transport.go#L1519: 		m := req.Method
		transport.go#L1524: 		if req.Method != "CONNECT" {
		transport.go#L1588: 		if shouldSendReqContentLength(req.Method, contentLength) {
		transport.go#L2030: 	isHead := cs.req.Method == "HEAD"
		transport.go#L2235: 		if cs.req.Method == "HEAD" && len(data) > 0 {

	golang.org/x/pkgsite/internal/frontend
		details.go#L29: 	if r.Method != http.MethodGet && r.Method != http.MethodHead {
		fetch.go#L96: 	if r.Method != http.MethodPost {
		search.go#L227: 	if r.Method != http.MethodGet && r.Method != http.MethodHead {
		server.go#L367: 	if r.Method == http.MethodPost {

	golang.org/x/pkgsite/internal/middleware
		accept_requests.go#L24: 				if r.Method == m {
		requestlog.go#L63: 	if r.Method == http.MethodGet && r.URL.Path == "/healthz" {

	google.golang.org/grpc
		proxy.go#L87: 		Method: http.MethodConnect,

	google.golang.org/grpc/internal/transport
		handler_server.go#L56: 	if r.Method != "POST" {