Merge pull request #296 from chenke23/patch-1
response.json->response.json()
This commit is contained in:
@@ -194,7 +194,7 @@
|
|||||||
>>> import requests
|
>>> import requests
|
||||||
>>> r = requests.get('http://httpbin.org/get?name=Dave&n=37',
|
>>> r = requests.get('http://httpbin.org/get?name=Dave&n=37',
|
||||||
... headers = { 'User-agent': 'goaway/1.0' })
|
... headers = { 'User-agent': 'goaway/1.0' })
|
||||||
>>> resp = r.json
|
>>> resp = r.json()
|
||||||
>>> resp['headers']
|
>>> resp['headers']
|
||||||
{'User-Agent': 'goaway/1.0', 'Content-Length': '', 'Content-Type': '',
|
{'User-Agent': 'goaway/1.0', 'Content-Length': '', 'Content-Type': '',
|
||||||
'Accept-Encoding': 'gzip, deflate, compress', 'Connection':
|
'Accept-Encoding': 'gzip, deflate, compress', 'Connection':
|
||||||
|
|||||||
Reference in New Issue
Block a user