The effbot.org.http_client Module

CloseConnection (class) [#]

Closes the connection.

For more information about this class, see The CloseConnection Class.

do_request(uri, consumer, extra_headers=None) [#]

Issues a HTTP GET request.

uri
The target URI.
consumer
The target consumer.
extra_headers
A list of extra headers, if relevant.
Returns:
An async_http instance.

HTTPClient(request, consumer) (class) [#]

Asynchronous HTTP/1.1 client.

For more information about this class, see The HTTPClient Class.

Redirect(location) (class) [#]

Redirects the connection.

For more information about this class, see The Redirect Class.

Request(uri, extra_headers=None, method=None, data=None, cookie=None) (class) [#]

Request wrapper.

For more information about this class, see The Request Class.

The CloseConnection Class

CloseConnection (class) [#]

Closes the connection. Request handlers can raise this exception to indicate that the connection should be closed.

The HTTPClient Class

HTTPClient(request, consumer) (class) [#]

Asynchronous HTTP/1.1 client.

handle_close() [#]

(Internal) Handles connection shutdown.

handle_error() [#]

(Internal) Handles internal errors.

handle_expt() [#]

(Internal) Handles out-of-band data. On Windows, this is also called when the connection fails.

The Redirect Class

Redirect(location) (class) [#]

Redirects the connection. Request handlers can raise this exception to indicate that the a new request should be issued.

The Request Class

Request(uri, extra_headers=None, method=None, data=None, cookie=None) (class) [#]

Request wrapper.