Building an HTTP client with httpx
The httpx
package is the recommended Python standard library package for HTTP and asynchronous tasks in Python 3.7. This module has a simpler interface, and it also has the capacity to manage all tasks related to asynchronous requests.
This module is compatible with requests and with the version of the HTTP/2 protocol, which offers a series of improvements at the performance level, such as the compression of the headers that are sent in the requests.
This module supports both versions HTTP/1.1 and HTTP/2. The main difference between these two versions is that the HTTP/2 version is a protocol based on binary data instead of textual data.
HTTP/2 is a big new version of the HTTP protocol, offering much more effective transport with possible performance advantages. HTTP/2 does not change the core semantics of the request or response, but does change the way data is transmitted from and to the server.
You can install the httpx
module on your...