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 or an iterator over strings.
- headers
-
The message headers as an instance of the standard library's
email.Message.Message.
Release 0.9a2, documentation updated on April 12, 2006.
httpy is Zeta software. It is copyright © 2006 by Chad Whitacre, and is offered free of charge, warranty, and restrictions.