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

Method set_cookie

src/quart/typing.py:273–286  ·  view source on GitHub ↗
(
        self,
        server_name: str,
        key: str,
        value: str = "",
        max_age: int | timedelta | None = None,
        expires: int | float | datetime | None = None,
        path: str = "/",
        domain: str | None = None,
        secure: bool = False,
        httponly: bool = False,
        samesite: str = None,
        charset: str = "utf-8",
    )

Source from the content-addressed store, hash-verified

271 async def trace(self, *args: Any, **kwargs: Any) -> Response: ...
272
273 def set_cookie(
274 self,
275 server_name: str,
276 key: str,
277 value: str = "",
278 max_age: int | timedelta | None = None,
279 expires: int | float | datetime | None = None,
280 path: str = "/",
281 domain: str | None = None,
282 secure: bool = False,
283 httponly: bool = False,
284 samesite: str = None,
285 charset: str = "utf-8",
286 ) -> None: ...
287
288 def delete_cookie(
289 self, server_name: str, key: str, path: str = "/", domain: str | None = None

Callers 4

save_sessionMethod · 0.45
echoFunction · 0.45
aFunction · 0.45
test_set_cookieFunction · 0.45

Calls

no outgoing calls

Tested by 3

echoFunction · 0.36
aFunction · 0.36
test_set_cookieFunction · 0.36