MCPcopy Create free account
hub / github.com/pallets/quart / get_cookie_httponly

Method get_cookie_httponly

src/quart/sessions.py:62–64  ·  view source on GitHub ↗

Helper method to return if the Cookie should be HTTPOnly for the App.

(self, app: Quart)

Source from the content-addressed store, hash-verified

60 return app.config["SESSION_COOKIE_PATH"] or app.config["APPLICATION_ROOT"]
61
62 def get_cookie_httponly(self, app: Quart) -> bool:
63 """Helper method to return if the Cookie should be HTTPOnly for the App."""
64 return app.config["SESSION_COOKIE_HTTPONLY"]
65
66 def get_cookie_secure(self, app: Quart) -> bool:
67 """Helper method to return if the Cookie should be Secure for the App."""

Calls

no outgoing calls