Response

class eynnyd.abstract_response.AbstractResponse[source]

The expected interface for a response.

If you want to build your own response objects it must meet the contract of this class

abstract property status

The status of the response

Returns

An instance of an Eynnyd HTTPStatus object with code and phrase properties

abstract property body

The body of the response

Returns

An instance of an Eynnyd ResponseBody with type and content properties

abstract property headers

The headers of the response

Returns

A dictionary of header name to header value

abstract property cookies

The cookies of the response

Returns

a list of Eynnyd ResponseCookie objects