HTTP Requests with HTTPX: Advanced Topics


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description

Various HTTPX features are used to optimize the processing of HTTP requests. This course introduces you to some advanced techniques that use HTTPX to send and process HTTP requests.

You'll start by looking at HTTPX streams, which allow the processing of large responses in chunks to reduce the load on memory resources. You'll then examine the HTTP response content that can determine how our application's subsequent actions are defined, including HTTP status codes, HTTP headers, and cookie usage.

Next, you'll configure requests to handle redirects on the server side, set timeout values to prevent long waits due to network or server issues, and touch upon the compatibility of the Python Requests library with HTTPX.

Finally, you'll focus on an essential feature of HTTPX - sending and asynchronously processing HTTP requests, which can significantly improve app performance.



Expected Duration (hours)
1.6

Lesson Objectives

HTTP Requests with HTTPX: Advanced Topics

  • discover the key concepts covered in this course
  • identify the different options available to stream large volumes of data in an HTTP response
  • process large HTTP responses in chunks using HTTPX streams
  • recognize the messages conveyed in the different status codes sent in an HTTP response
  • obtain information about a remote service by examining the data in the headers returned in an HTTP response
  • recognize how cookie information is stored in an HTTP response
  • configure an httpx.Cookies instance to send a collection of properties to a remote server
  • identify when a redirect has taken place upon submitting an HTTP request
  • limit the amount of time your app spends waiting to get served a response to an HTTP request using timeouts
  • recognize the types of exceptions that can be encountered when sending and processing requests with HTTPX
  • modify a program that uses the Python Requests library for HTTP requests so that it uses HTTPX instead
  • compare and contrast the Python Requests and HTTPX libraries
  • download a set of files sequentially using HTTPX
  • use the HTTPX AsynClient to download a set of files asynchronously
  • summarize the key concepts covered in this course
  • Course Number:
    it_pyhrhxdj_02_enus

    Expertise Level
    Beginner