cookie
- cookie(name: str, t: type = <class 'str'>, description: str = None, required: bool = False, deprecated: bool = False) → Callable
Indicates that a request handler expects a cookie.
- Parameters:
name (str) – REQUIRED. The cookie name that is expected.
t (type) – If the cookie represents a particular data type. Encoding/Decoding the cookie remains the responsibility of the application/server. Default is
str.description (str) – An optional description for the header or its content.
required (bool) –
TrueIf the cookie is required. Default isFalse.deprecated (bool) –
TrueIf the cookie is deprecated. Default isFalse.