Options sends an OPTIONS request to the specified URL, similar to axios.
(url string, cfg ...Config)
| 744 | |
| 745 | // Options sends an OPTIONS request to the specified URL, similar to axios. |
| 746 | func (c *Client) Options(url string, cfg ...Config) (*Response, error) { |
| 747 | req := AcquireRequest().SetClient(c) |
| 748 | setConfigToRequest(req, cfg...) |
| 749 | return req.Options(url) |
| 750 | } |
| 751 | |
| 752 | // Patch sends a PATCH request to the specified URL, similar to axios. |
| 753 | func (c *Client) Patch(url string, cfg ...Config) (*Response, error) { |
nothing calls this directly
no test coverage detected