1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
``tornado.httpclient`` --- Asynchronous HTTP client
===================================================
.. automodule:: tornado.httpclient
HTTP client interfaces
----------------------
.. autoclass:: HTTPClient
:members:
.. autoclass:: AsyncHTTPClient
:members:
Request objects
---------------
.. autoclass:: HTTPRequest
:members:
Response objects
----------------
.. autoclass:: HTTPResponse
:members:
Exceptions
----------
.. autoexception:: HTTPError
:members:
Command-line interface
----------------------
This module provides a simple command-line interface to fetch a url
using Tornado's HTTP client. Example usage::
# Fetch the url and print its body
python -m tornado.httpclient http://www.google.com
# Just print the headers
python -m tornado.httpclient --print_headers --print_body=false http://www.google.com
Implementations
~~~~~~~~~~~~~~~
.. automodule:: tornado.simple_httpclient
:members:
.. module:: tornado.curl_httpclient
.. class:: CurlAsyncHTTPClient(io_loop, max_clients=10, defaults=None)
``libcurl``-based HTTP client.
|