pigeon.http.response¶
Module Contents¶
- class pigeon.http.response.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.response.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¶