Handle basic requests with a simple XML response.
(_scope: dict[str, Any], _receive: Receive, send: Send)
| 191 | |
| 192 | |
| 193 | async 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 | |
| 202 | async def post_echo(scope: dict[str, Any], receive: Receive, send: Send) -> None: |
nothing calls this directly
no test coverage detected