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

Function non_href_links_endpoint

tests/unit/server.py:311–316  ·  view source on GitHub ↗

Handle requests with a page containing non-href links.

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

Source from the content-addressed store, hash-verified

309
310
311async def non_href_links_endpoint(_scope: dict[str, Any], _receive: Receive, send: Send) -> None:
312 """Handle requests with a page containing non-href links."""
313 await send_html_response(
314 send,
315 NON_HREF_LINKS,
316 )
317
318
319async def redirect_to_url(scope: dict[str, Any], _receive: Receive, send: Send) -> None:

Callers

nothing calls this directly

Calls 1

send_html_responseFunction · 0.85

Tested by

no test coverage detected