3.1.2 Derived API

Besides providing access to the raw Request message, Request instances provide a very minimal derivative API:

method
The HTTP method from the Request-Line.

uri
The Request-URI as a dictionary. The keys of this dictionary are taken from the names used in the standard library's urlparse module, namely: scheme://netloc/path;parameters?query#fragment.

path
The path component of the Request-URI.

headers
The headers as an instance of the standard library's email.Message.Message.

httpy is Zeta software. It is copyright © 2006 by Chad Whitacre, and is offered free of charge, warranty, and restrictions.