projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce1945c
)
emphasize r.content
author
Kenneth Reitz
<me@kennethreitz.com>
Sun, 14 Aug 2011 15:06:41 +0000
(11:06 -0400)
committer
Kenneth Reitz
<me@kennethreitz.com>
Sun, 14 Aug 2011 15:06:41 +0000
(11:06 -0400)
docs/index.rst
patch
|
blob
|
history
diff --git
a/docs/index.rst
b/docs/index.rst
index 0f6d9ca93717e81aced697a57d10da8ac547ec97..e1628d426d506073817ab09bc6edfb2a4142cdc3 100644
(file)
--- a/
docs/index.rst
+++ b/
docs/index.rst
@@
-21,9
+21,11
@@
Things shouldn’t be this way. Not in Python.
>>> r = requests.get('https://api.github.com', auth=('user', 'pass'))
>>> r.status_code
- 20
0
+ 20
4
>>> r.headers['content-type']
'application/json'
+ >>> r.content
+ ...
See `the same code, without Requests <https://gist.github.com/973705>`_.