Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 940 Bytes

httpclient.rst

File metadata and controls

40 lines (29 loc) · 940 Bytes

tornado.httpclient --- Asynchronous HTTP client

tornado.httpclient

HTTP client interfaces

HTTPClient

AsyncHTTPClient

Request objects

HTTPRequest

Response objects

HTTPResponse

Exceptions

HTTPError

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