MCPcopy Create free account
hub / github.com/apify/crawlee-python / request_handler

Function request_handler

tests/unit/crawlers/_http/test_http_crawler.py:247–250  ·  view source on GitHub ↗
(context: HttpCrawlingContext)

Source from the content-addressed store, hash-verified

245
246 @crawler.router.default_handler
247 async def request_handler(context: HttpCrawlingContext) -> None:
248 response = json.loads(await context.http_response.read())
249 # The post endpoint returns the provided payload in the response.
250 responses.append(response)
251
252 encoded_payload = urlencode(PAYLOAD).encode()
253 request = Request.from_url(

Callers

nothing calls this directly

Calls 2

readMethod · 0.45
get_snapshotMethod · 0.45

Tested by

no test coverage detected