(self, host: str, app: ASGIApp, name: str | None = None)
| 458 | |
| 459 | class Host(BaseRoute): |
| 460 | def __init__(self, host: str, app: ASGIApp, name: str | None = None) -> None: |
| 461 | assert not host.startswith("/"), "Host must not start with '/'" |
| 462 | self.host = host |
| 463 | self.app = app |
| 464 | self.name = name |
| 465 | self.host_regex, self.host_format, self.param_convertors = compile_path(host) |
| 466 | |
| 467 | @property |
| 468 | def routes(self) -> list[BaseRoute]: |
no test coverage detected