ID EN
HTTP Client

parse_headers

Python 3.11

Parse the headers from a file pointer fp representing a HTTP request/response. The file has to be a BufferedIOBase reader (i.e. not text) and must provide a valid RFC 2822 style header.

Syntax

PYTHON
http.client.parse_headers(fp)

See Also

BufferedIOBase http.client.HTTPMessage HTTPResponse.msg http.server.BaseHTTPRequestHandler.headers parse_headers()