mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
http.client.HTTPConnection.request accepts str as the body (#9322)
See code around ab02262cd0/Lib/http/client.py (L1328)
This commit is contained in:
@@ -154,7 +154,13 @@ class HTTPConnection:
|
||||
blocksize: int = ...,
|
||||
) -> None: ...
|
||||
def request(
|
||||
self, method: str, url: str, body: _DataType | None = ..., headers: Mapping[str, str] = ..., *, encode_chunked: bool = ...
|
||||
self,
|
||||
method: str,
|
||||
url: str,
|
||||
body: _DataType | str | None = ...,
|
||||
headers: Mapping[str, str] = ...,
|
||||
*,
|
||||
encode_chunked: bool = ...,
|
||||
) -> None: ...
|
||||
def getresponse(self) -> HTTPResponse: ...
|
||||
def set_debuglevel(self, level: int) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user