Skip to content
masterclass Buddy

Requests · Class

HTTPAdapter

HTTPAdapter is Requests' built-in transport adapter for HTTP and HTTPS. Mount it on a Session to control connection pools, retries, and service-specific transport behavior.

Last updated

Since
1.0.0

Syntax

HTTPAdapter(pool_connections=10, pool_maxsize=10, max_retries=0, pool_block=False)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • BaseAdapter
  • Session
  • Retry
  • PoolManager
  • Transport Adapters
  • Streaming Requests

Source: Advanced Usage — Requests 2.34.2 documentation. Checked 2026-11-03.