Handle requests for the base index page.
(_scope: dict[str, Any], _receive: Receive, send: Send)
| 456 | |
| 457 | |
| 458 | async def base_index_endpoint(_scope: dict[str, Any], _receive: Receive, send: Send) -> None: |
| 459 | """Handle requests for the base index page.""" |
| 460 | host = f'http://{get_headers_dict(_scope).get("host", "localhost")}' |
| 461 | content = BASE_INDEX.format(host=host).encode() |
| 462 | await send_html_response( |
| 463 | send, |
| 464 | content, |
| 465 | ) |
| 466 | |
| 467 | |
| 468 | async def start_enqueue_non_href_endpoint(_scope: dict[str, Any], _receive: Receive, send: Send) -> None: |
nothing calls this directly
no test coverage detected