Handle basic requests with a simple JSON response.
(_scope: dict[str, Any], _receive: Receive, send: Send)
| 183 | |
| 184 | |
| 185 | async 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 | |
| 193 | async def hello_world_xml(_scope: dict[str, Any], _receive: Receive, send: Send) -> None: |
nothing calls this directly
no test coverage detected