diff options
author | Franek Magiera <framagie@gmail.com> | 2023-05-02 10:10:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 12:10:35 +0400 |
commit | 6351614959b6599fe53312223c972daba75a671f (patch) | |
tree | 821916ce8b79b4b94d8582f17ff59326b4b54d74 | |
parent | 08237ad0729f4ec2e0bd093cf08e518025d2001d (diff) | |
download | urllib3-6351614959b6599fe53312223c972daba75a671f.tar.gz |
Show urllib3.request() in README (#3006)
Since version 2.0 a top level request method can be used for HTTP calls.
-rw-r--r-- | README.md | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -34,8 +34,7 @@ urllib3 is powerful and easy to use: ```python3 >>> import urllib3 ->>> http = urllib3.PoolManager() ->>> resp = http.request("GET", "http://httpbin.org/robots.txt") +>>> resp = urllib3.request("GET", "http://httpbin.org/robots.txt") >>> resp.status 200 >>> resp.data |