diff --git a/stdlib/3/http/client.pyi b/stdlib/3/http/client.pyi index 79170ce2c..34402e40b 100644 --- a/stdlib/3/http/client.pyi +++ b/stdlib/3/http/client.pyi @@ -8,6 +8,7 @@ from typing import ( IO, Any, BinaryIO, + Callable, Dict, Iterable, Iterator, @@ -90,6 +91,8 @@ responses: Dict[int, str] class HTTPMessage(email.message.Message): ... +def parse_headers(fp: io.BufferedIOBase, _class: Callable[[], email.message.Message] = ...) -> HTTPMessage: ... + class HTTPResponse(io.BufferedIOBase, BinaryIO): msg: HTTPMessage headers: HTTPMessage