Tornado – Blocking & Non-Blocking HTTP Client

Tornado provides tornado.httpclient that works as httpclient and can send blocking and non-blocking (async) http requests.


1. HTTPClient: This tornado client is typically used for testing web servers or simply making a HTTP request and receiving the response. An example implementation below


2. AsyncHTTPClient: httpclient.AsyncHTTPClient()  creates an instance of the class and that can be reused one per IO loop. Here’s an example implementation below

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.