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