From 3ba8c50d92e8aa0f000e8b31810e50af8980c530 Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Fri, 15 Oct 2021 17:16:39 +0330 Subject: [PATCH] Add some attributes to http.client.HTTPResponse (#6176) --- stdlib/http/client.pyi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stdlib/http/client.pyi b/stdlib/http/client.pyi index cf11e922e..f27cb0b60 100644 --- a/stdlib/http/client.pyi +++ b/stdlib/http/client.pyi @@ -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: ...