HTTP Extension
HTTP client for making web requests.
Types
| Type | Description |
|---|---|
Client |
HTTP client for making requests |
Error |
Transport or protocol request error |
Event |
Server-Sent Events stream item |
Status |
Non-2xx HTTP response error |
HTTP request functions and client methods accept either a plain
str URL or a url.Url
instance.
Cookie-backed session handling is available through
Client, which can be constructed with cookies: true.
The top-level request helpers create a fresh stateless client per call.
Functions
get | post | ...
Makes an HTTP request using the specified verb. See Client for detailed documentation on all HTTP request methods and their parameters.