pigeon.middleware.components.cookies¶
Module Contents¶
- class pigeon.middleware.components.cookies.HTTPRequest(method: str, path: str, headers: dict = None, get: dict = None, data=None, files=None, protocol: str = '1.1', content_type=None, **kwargs)¶
Bases:
pigeon.http.message.HTTPMessage
An HTTP message (obv either response or request)
- property is_error¶
- class pigeon.middleware.components.cookies.HTTPResponse(headers: dict = None, data: str = None, status: int = 200, cookies=None, protocol: str = '1.1', content_type=None, **kwargs)¶
Bases:
pigeon.http.message.HTTPMessage
An HTTP message (obv either response or request)
- property is_error¶
- class pigeon.middleware.components.cookies.ParameterDict(data: dict = None)¶
Bases:
collections.UserDict
Similar to a dictionary, but items can also be accessed using <dict>.<key>. If accessed as described above, the dict will return the value or None if no matching item is found.
- keys()¶
D.keys() -> a set-like object providing a view on D’s keys
- items()¶
D.items() -> a set-like object providing a view on D’s items
- values()¶
D.values() -> an object providing a view on D’s values
- class pigeon.middleware.components.cookies.CookieComponent¶
- classmethod preprocess(request: pigeon.http.HTTPRequest) → pigeon.http.HTTPRequest | pigeon.http.HTTPResponse¶
Parses cookeis in request and adds them to request object
- classmethod postprocess(response: pigeon.http.HTTPResponse, request: pigeon.http.HTTPRequest) → pigeon.http.HTTPResponse¶