mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Revert "In fact, the feature is so awesome that it should go into index.rst"
This reverts commit f968fe0136.
This commit is contained in:
+3
-5
@@ -18,15 +18,13 @@ Things shouldn’t be this way. Not in Python.
|
||||
|
||||
::
|
||||
|
||||
>>> r = requests.get('http://httpbin.org/get', auth=('user', 'passwd'))
|
||||
>>> r = requests.get('https://api.github.com', auth=('user', 'pass'))
|
||||
>>> r.status_code
|
||||
200
|
||||
204
|
||||
>>> r.headers['content-type']
|
||||
'application/json'
|
||||
>>> r.text
|
||||
u'{\n "url": "http://httpbin.org/get", \n "headers": {...
|
||||
>>> r.json
|
||||
{u'url': u'http://httpbin.org/get', u'headers': {...
|
||||
...
|
||||
|
||||
See `the same code, without Requests <https://gist.github.com/973705>`_.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user