The http vocabulary contains data types shared by http.client and http.server.

The HTTP client sends an HTTP request to the server and receives an HTTP response back. The HTTP server receives HTTP requests from clients and sends HTTP responses back.
HTTP requests
HTTP responses

Both requests and responses support some common functionality:
HTTP headers
HTTP cookies

See also
URL objects