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

Function start_enqueue_non_href_endpoint

tests/unit/server.py:468–475  ·  view source on GitHub ↗

Handle requests for the base index page.

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

Source from the content-addressed store, hash-verified

466
467
468async def start_enqueue_non_href_endpoint(_scope: dict[str, Any], _receive: Receive, send: Send) -> None:
469 """Handle requests for the base index page."""
470 host = f'http://{get_headers_dict(_scope).get("host", "localhost")}'
471 content = START_ENQUEUE_NON_HREF.format(host=host).encode()
472 await send_html_response(
473 send,
474 content,
475 )
476
477
478class TestServer(Server):

Callers

nothing calls this directly

Calls 3

get_headers_dictFunction · 0.85
send_html_responseFunction · 0.85
formatMethod · 0.80

Tested by

no test coverage detected