MCPcopy
hub / github.com/apify/crawlee / requestHandler

Function requestHandler

test/core/crawlers/basic_crawler.test.ts:100–103  ·  view source on GitHub ↗
({ request })

Source from the content-addressed store, hash-verified

98 const processed: { url: string }[] = [];
99 const requestList = await RequestList.open(null, sources);
100 const requestHandler: RequestHandler = async ({ request }) => {
101 await sleep(10);
102 processed.push({ url: request.url });
103 };
104
105 const basicCrawler = new BasicCrawler({
106 requestList,

Callers

nothing calls this directly

Calls 12

sleepFunction · 0.90
addRequestsFunction · 0.85
enqueueLinksFunction · 0.85
expectFunction · 0.85
sendRequestFunction · 0.85
pushMethod · 0.80
toStringMethod · 0.80
useStateMethod · 0.80
mapMethod · 0.80
fromMethod · 0.80
getMethod · 0.65
finishFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…