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:
73abf84
)
Session isn't advertised as a context manager
author
David Fischer
<djfische@gmail.com>
Sat, 2 Mar 2013 16:59:19 +0000
(08:59 -0800)
committer
David Fischer
<djfische@gmail.com>
Sat, 2 Mar 2013 16:59:19 +0000
(08:59 -0800)
docs/api.rst
patch
|
blob
|
history
diff --git
a/docs/api.rst
b/docs/api.rst
index
4bd35e2
..
8e7eacd
100644
(file)
--- a/
docs/api.rst
+++ b/
docs/api.rst
@@
-129,9
+129,10
@@
API Changes
::
- with requests.Session() as s: # formerly, session took parameters
- s.auth = auth
- s.headers.update(headers)
+ s = requests.Session() # formerly, session took parameters
+ s.auth = auth
+ s.headers.update(headers)
+ r = s.get('http://httpbin.org/headers')
* All request hooks have been removed except 'response'.