

That AsyncHTTPClient objects are transparently reused.Ĭlose() is generally only necessary when either the This method is not needed in normal use due to the way initialize ( defaults : Optional ] = None ) → None ¶ close ( ) → None ¶ĭestroys this HTTP client, freeing any file descriptors used. To select curl_httpclient, call nfigure at startup:Ĭhanged in version 5.0: The io_loop argument (deprecated since version 4.1) has been removed. Recommended that your libcurl installation is built withĪsynchronous DNS resolver (threaded or c-ares), otherwise you mayĮncounter various problems with request timeouts (for more Currently the minimum supported version of libcurl isħ.22.0, and the minimum version of pycurl is 7.18.2. Recommended that you use a recent version of libcurl and Note that if you are using curl_httpclient, it is highly Not-quite-compliant with the HTTP spec, or sites that use little-exercised Including support for HTTP proxies and the ability to use a specifiedĬurl_httpclient is more likely to be compatible with sites that are To switch to curl_httpclient for reasons such as the following:Ĭurl_httpclient has some features not found in simple_httpclient, The default implementation is simple_httpclient, and this is expected That can be overridden with the nfigure method. Instantiate their chosen implementation class directly or use theĪsyncHTTPClient class from this module, which selects an implementation This module defines a common interface shared by two implementations, Tornado.httpclient - Asynchronous HTTP client ¶īlocking and non-blocking HTTP client interfaces.
