From: Tom Christie Date: Sun, 29 Dec 2019 15:02:03 +0000 (+0000) Subject: Drop Request.read() (#679) X-Git-Tag: 0.10.0~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25b40db757c96475cbbed11829493114359306ee;p=thirdparty%2Fhttpx.git Drop Request.read() (#679) --- diff --git a/httpx/models.py b/httpx/models.py index 0a44d325..e217f01a 100644 --- a/httpx/models.py +++ b/httpx/models.py @@ -649,12 +649,6 @@ class Request: url = str(self.url) return f"<{class_name}({self.method!r}, {url!r})>" - async def read(self) -> bytes: - """ - Read and return the request content. - """ - return b"".join([part async for part in self.stream]) - class Response: def __init__(