Add some attributes to http.client.HTTPResponse (#6176)

This commit is contained in:
Hasan Ramezani
2021-10-15 17:16:39 +03:30
committed by GitHub
parent 0e24e1fe66
commit 3ba8c50d92

View File

@@ -86,6 +86,10 @@ class HTTPResponse(io.BufferedIOBase, BinaryIO):
closed: bool
status: int
reason: str
chunked: bool
chunk_left: int | None
length: int | None
will_close: bool
def __init__(self, sock: socket, debuglevel: int = ..., method: str | None = ..., url: str | None = ...) -> None: ...
def peek(self, n: int = ...) -> bytes: ...
def read(self, amt: int | None = ...) -> bytes: ...