3.2 Response Objects

Instances of httpy.Response have the following attributes. Note that values are only validated in the constructor, so it is currently possible to raise a malformed Response by setting instance attributes post-instantiation.

code
The HTTP code as an integer.

body
The message body as a string, an iterator over strings, or an httpy.utils.Path object.

headers
The message headers as a dictionary.
httpy is Zeta software. It is copyright © 2006 by Chad Whitacre, and is offered free of charge, warranty, and restrictions.