MCPcopy Index your code
hub / github.com/PuerkitoBio/fetchbot / SendStringGet

Method SendStringGet

fetch.go:216–218  ·  view source on GitHub ↗

SendStringGet enqueues the URL strings to be fetched with a GET 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

214// It returns an error if the URL string cannot be parsed, or if the Queue has been closed.
215// The first return value is the number of URLs successfully enqueued.
216func (q *Queue) SendStringGet(rawurl ...string) (int, error) {
217 return q.sendWithMethod("GET", rawurl)
218}
219
220// Parses the URL strings and enqueues them as *Cmd. It returns the number of URLs
221// successfully enqueued, and an error if the URL string cannot be parsed or

Callers 13

TestQueueClosedFunction · 0.80
TestBlockFunction · 0.80
TestSendVariadicFunction · 0.80
TestUserAgentFunction · 0.80
TestCrawlDelayFunction · 0.80
TestManyCrawlDelaysFunction · 0.80
TestFreeIdleHostFunction · 0.80
TestRemoveHostsFunction · 0.80
TestRestartFunction · 0.80
TestOverflowBufferFunction · 0.80
TestCancelFunction · 0.80
TestGoroLeakFunction · 0.80

Calls 1

sendWithMethodMethod · 0.95

Tested by 12

TestQueueClosedFunction · 0.64
TestBlockFunction · 0.64
TestSendVariadicFunction · 0.64
TestUserAgentFunction · 0.64
TestCrawlDelayFunction · 0.64
TestManyCrawlDelaysFunction · 0.64
TestFreeIdleHostFunction · 0.64
TestRemoveHostsFunction · 0.64
TestRestartFunction · 0.64
TestOverflowBufferFunction · 0.64
TestCancelFunction · 0.64
TestGoroLeakFunction · 0.64