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

Method SendString

fetch.go:202–204  ·  view source on GitHub ↗

SendString enqueues a method and some URL strings into the Fetcher. 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.

(method string, rawurl ...string)

Source from the content-addressed store, hash-verified

200// if the URL string cannot be parsed, or if the Queue has been closed.
201// The first return value is the number of URLs successfully enqueued.
202func (q *Queue) SendString(method string, rawurl ...string) (int, error) {
203 return q.sendWithMethod(method, rawurl)
204}
205
206// SendStringHead enqueues the URL strings to be fetched with a HEAD method.
207// It returns an error if the URL string cannot be parsed, or if the Queue has been closed.

Callers 2

TestSendStringFunction · 0.80
TestFetchDisallowedFunction · 0.80

Calls 1

sendWithMethodMethod · 0.95

Tested by 2

TestSendStringFunction · 0.64
TestFetchDisallowedFunction · 0.64