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

Function hello_world_json

tests/unit/server.py:185–190  ·  view source on GitHub ↗

Handle basic requests with a simple JSON response.

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

Source from the content-addressed store, hash-verified

183
184
185async def hello_world_json(_scope: dict[str, Any], _receive: Receive, send: Send) -> None:
186 """Handle basic requests with a simple JSON response."""
187 await send_json_response(
188 send,
189 {'hello': 'world'},
190 )
191
192
193async def hello_world_xml(_scope: dict[str, Any], _receive: Receive, send: Send) -> None:

Callers

nothing calls this directly

Calls 1

send_json_responseFunction · 0.85

Tested by

no test coverage detected