pigeon.http.request¶
Module Contents¶
- class pigeon.http.request.HTTPMessage(headers: dict[str, str], data: str, protocol: str, content_type=None, cookies=None, **kwargs)¶
An HTTP message (obv either response or request)
- abstract property is_error¶
- set_headers(headers)¶
Overwrites headers passed to function
- class pigeon.http.request.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.http.request.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¶