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

Function base_index_endpoint

tests/unit/server.py:458–465  ·  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

456
457
458async def base_index_endpoint(_scope: dict[str, Any], _receive: Receive, send: Send) -> None:
459 """Handle requests for the base index page."""
460 host = f'http://{get_headers_dict(_scope).get("host", "localhost")}'
461 content = BASE_INDEX.format(host=host).encode()
462 await send_html_response(
463 send,
464 content,
465 )
466
467
468async def start_enqueue_non_href_endpoint(_scope: dict[str, Any], _receive: Receive, send: Send) -> None:

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