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

Method check_host_trust

src/werkzeug/debug/__init__.py:464–465  ·  view source on GitHub ↗
(self, environ: WSGIEnvironment)

Source from the content-addressed store, hash-verified

462 return (time.time() - PIN_TIME) < ts
463
464 def check_host_trust(self, environ: WSGIEnvironment) -> bool:
465 return host_is_trusted(environ.get("HTTP_HOST"), self.trusted_hosts)
466
467 def _fail_pin_auth(self) -> None:
468 with self._failed_pin_auth.get_lock():

Callers 5

debug_applicationMethod · 0.95
execute_commandMethod · 0.95
display_consoleMethod · 0.95
pin_authMethod · 0.95
log_pin_requestMethod · 0.95

Calls 2

host_is_trustedFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected