MCPcopy
hub / github.com/gofiber/fiber / SetMethod

Method SetMethod

client/request.go:82–85  ·  view source on GitHub ↗

SetMethod sets the HTTP method for the Request. It is recommended to use the specialized methods (e.g., Get, Post) instead.

(method string)

Source from the content-addressed store, hash-verified

80// SetMethod sets the HTTP method for the Request.
81// It is recommended to use the specialized methods (e.g., Get, Post) instead.
82func (r *Request) SetMethod(method string) *Request {
83 r.method = method
84 return r
85}
86
87// URL returns the URL set in the Request.
88func (r *Request) URL() string {

Calls

no outgoing calls