Skip to content

HTTP Request Libraries · Course Guide ​

This 20-chapter course systematically covers Python's two most popular HTTP client libraries:

LibraryPositioningVersion Baseline
requestsThe de-facto standard for sync requests; richest ecosystemrequests 2.34.x
httpxModern full-featured client with native async + HTTP/2httpx 0.28.x

What You Will Learn ​

StageChaptersContent
Beginner01–05HTTP basics, core requests API, request parameters, response handling, JSON/files
Intermediate06–10Sessions, timeouts & retries, proxies & SSL, exceptions, httpx intro
Advanced11–15Async requests, concurrency, HTTP/2, middleware, pytest integration
Production16–20Performance tuning, API client wrappers, security, deployment, capstone

How It Connects to Other Courses ​

  • Pairs with pytest chapter 19 (web service testing);
  • Complements FastAPI chapter 20 (testing) for a complete web-testing skill set;
  • Complements Playwright — Playwright tests browsers, while requests/httpx test APIs.

Official References ​

This course is written strictly against the following authoritative documentation:

SourceLink
requests.readthedocs.iohttps://requests.readthedocs.io/en/latest/
www.python-httpx.orghttps://www.python-httpx.org/

Version baseline: requests 2.34 + httpx 0.28

Prerequisites ​

  • Basic Python; a grasp of fundamental HTTP concepts (GET/POST, status codes, headers);
  • Completing the first six chapters of our pytest course first is recommended.

👉 Start from Chapter 1.