MCPcopy
hub / github.com/pallets/werkzeug / host

Method host

src/werkzeug/sansio/request.py:230–238  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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]:

Callers

nothing calls this directly

Calls 2

get_hostFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected