Post create a new POST request.
(url ...string)
| 99 | |
| 100 | // Post create a new POST request. |
| 101 | func (c *Client) Post(url ...string) *Request { |
| 102 | r := c.R() |
| 103 | if len(url) > 0 { |
| 104 | r.RawURL = url[0] |
| 105 | } |
| 106 | r.Method = http.MethodPost |
| 107 | return r |
| 108 | } |
| 109 | |
| 110 | // Patch create a new PATCH request. |
| 111 | func (c *Client) Patch(url ...string) *Request { |