The host name the request was made to, including the port if it's non-standard. Validated with :attr:`trusted_hosts`. See :func:`.get_host` for a detailed explanation.
(self)
| 228 | |
| 229 | @cached_property |
| 230 | def host(self) -> str: |
| 231 | """The host name the request was made to, including the port if |
| 232 | it's non-standard. Validated with :attr:`trusted_hosts`. |
| 233 | |
| 234 | See :func:`.get_host` for a detailed explanation. |
| 235 | """ |
| 236 | return get_host( |
| 237 | self.scheme, self.headers.get("host"), self.server, self.trusted_hosts |
| 238 | ) |
| 239 | |
| 240 | @cached_property |
| 241 | def cookies(self) -> ImmutableMultiDict[str, str]: |