Python http Module
Example
Import the top-level package and verify a common member:
import http
print(hasattr(http, "HTTPStatus"))
Try it Yourself »
Definition and Usage
The http module is a package that contains modules for working with the HTTP protocol.
Use it for building HTTP clients and servers, handling status codes, and parsing headers (see submodules for details).
Members
Member | Description |
---|---|
HTTPStatus | Enumeration of HTTP status codes. |