Head sends a HEAD request to the specified URL, similar to axios.
(url string, cfg ...Config)
| 723 | |
| 724 | // Head sends a HEAD request to the specified URL, similar to axios. |
| 725 | func (c *Client) Head(url string, cfg ...Config) (*Response, error) { |
| 726 | req := AcquireRequest().SetClient(c) |
| 727 | setConfigToRequest(req, cfg...) |
| 728 | return req.Head(url) |
| 729 | } |
| 730 | |
| 731 | // Put sends a PUT request to the specified URL, similar to axios. |
| 732 | func (c *Client) Put(url string, cfg ...Config) (*Response, error) { |
nothing calls this directly
no test coverage detected