MCPcopy Create free account
hub / github.com/PuerkitoBio/fetchbot / SendStringHead

Method SendStringHead

fetch.go:209–211  ·  view source on GitHub ↗

SendStringHead enqueues the URL strings to be fetched with a HEAD method. It returns an error if the URL string cannot be parsed, or if the Queue has been closed. The first return value is the number of URLs successfully enqueued.

(rawurl ...string)

Source from the content-addressed store, hash-verified

207// It returns an error if the URL string cannot be parsed, or if the Queue has been closed.
208// The first return value is the number of URLs successfully enqueued.
209func (q *Queue) SendStringHead(rawurl ...string) (int, error) {
210 return q.sendWithMethod("HEAD", rawurl)
211}
212
213// SendStringGet enqueues the URL strings to be fetched with a GET method.
214// It returns an error if the URL string cannot be parsed, or if the Queue has been closed.

Callers 3

enqueueLinksFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

sendWithMethodMethod · 0.95

Tested by

no test coverage detected