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

Function echo_headers

tests/unit/server.py:265–268  ·  view source on GitHub ↗

Echo back the request headers as JSON.

(scope: dict[str, Any], _receive: Receive, send: Send)

Source from the content-addressed store, hash-verified

263
264
265async def echo_headers(scope: dict[str, Any], _receive: Receive, send: Send) -> None:
266 """Echo back the request headers as JSON."""
267 headers = get_headers_dict(scope)
268 await send_json_response(send, headers)
269
270
271async def start_enqueue_endpoint(_scope: dict[str, Any], _receive: Receive, send: Send) -> None:

Callers

nothing calls this directly

Calls 2

get_headers_dictFunction · 0.85
send_json_responseFunction · 0.85

Tested by

no test coverage detected