Patch create a new PATCH request.
(url ...string)
| 109 | |
| 110 | // Patch create a new PATCH request. |
| 111 | func (c *Client) Patch(url ...string) *Request { |
| 112 | r := c.R() |
| 113 | if len(url) > 0 { |
| 114 | r.RawURL = url[0] |
| 115 | } |
| 116 | r.Method = http.MethodPatch |
| 117 | return r |
| 118 | } |
| 119 | |
| 120 | // Delete create a new DELETE request. |
| 121 | func (c *Client) Delete(url ...string) *Request { |