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

Method SetMethod

header.go:759–761  ·  view source on GitHub ↗

SetMethod sets HTTP request method.

(method string)

Source from the content-addressed store, hash-verified

757
758// SetMethod sets HTTP request method.
759func (h *RequestHeader) SetMethod(method string) {
760 h.method = initHeaderValueString(h.method, method)
761}
762
763// SetMethodBytes sets HTTP request method.
764func (h *RequestHeader) SetMethodBytes(method []byte) {

Calls 1

initHeaderValueStringFunction · 0.85