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

Function hello_world_xml

tests/unit/server.py:193–199  ·  view source on GitHub ↗

Handle basic requests with a simple XML response.

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

Source from the content-addressed store, hash-verified

191
192
193async def hello_world_xml(_scope: dict[str, Any], _receive: Receive, send: Send) -> None:
194 """Handle basic requests with a simple XML response."""
195 await send_html_response(
196 send,
197 b"""<?xml version="1.0"?>
198 <hello>world</hello>""",
199 )
200
201
202async def post_echo(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