harp.http.responses¶ Inheritance diagram of harp.http.responses class AlreadyHandledHttpResponse[source]¶ Bases: HttpResponse __init__()[source]¶ class HttpResponse[source]¶ Bases: BaseHttpMessage __init__(body, /, *, status=200, headers=None, content_type=None, extensions=None)[source]¶ Parameters: body (bytes | str) status (int) headers (dict | None) extensions (dict | None) async aread()[source]¶ property body: bytes¶ property content_type: str¶ created_at: datetime¶ property headers: CIMultiDict¶ kind: str = 'response'¶ property reason_phrase: str¶ property status: int¶ property stream¶ class JsonHttpResponse[source]¶ Bases: HttpResponse __init__(body, /, *, status=200, headers=None)[source]¶ Parameters: body (dict) status (int) headers (dict)