MCPcopy
hub / github.com/valyala/fasthttp / Method

Method Method

header.go:751–756  ·  view source on GitHub ↗

Method returns HTTP request method.

()

Source from the content-addressed store, hash-verified

749
750// Method returns HTTP request method.
751func (h *RequestHeader) Method() []byte {
752 if len(h.method) == 0 {
753 return []byte(MethodGet)
754 }
755 return h.method
756}
757
758// SetMethod sets HTTP request method.
759func (h *RequestHeader) SetMethod(method string) {

Callers 13

testRequestHeaderMethodFunction · 0.95
IsGetMethod · 0.95
IsPostMethod · 0.95
IsPutMethod · 0.95
IsHeadMethod · 0.95
IsDeleteMethod · 0.95
IsConnectMethod · 0.95
IsOptionsMethod · 0.95
IsTraceMethod · 0.95
IsPatchMethod · 0.95

Calls

no outgoing calls