MCPcopy
hub / github.com/gofiber/fiber / Head

Method Head

client/client.go:725–729  ·  view source on GitHub ↗

Head sends a HEAD request to the specified URL, similar to axios.

(url string, cfg ...Config)

Source from the content-addressed store, hash-verified

723
724// Head sends a HEAD request to the specified URL, similar to axios.
725func (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.
732func (c *Client) Put(url string, cfg ...Config) (*Response, error) {

Callers

nothing calls this directly

Calls 4

AcquireRequestFunction · 0.85
setConfigToRequestFunction · 0.85
SetClientMethod · 0.80
HeadMethod · 0.65

Tested by

no test coverage detected