]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Drop Request.read() (#679)
authorTom Christie <tom@tomchristie.com>
Sun, 29 Dec 2019 15:02:03 +0000 (15:02 +0000)
committerGitHub <noreply@github.com>
Sun, 29 Dec 2019 15:02:03 +0000 (15:02 +0000)
httpx/models.py

index 0a44d3258ee705161867bd6d721430fb906c147a..e217f01aee3d2a2637871429e2cf5f7b428f4687 100644 (file)
@@ -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__(