Skip to content
Myr

Session isn't advertised as a context manager

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Fischer · committed by David Fischer · parent 73abf84 · Browse files · 1 file+4 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−3 removed

  • other:+4 added−3 removed

1 file+4 added−3 removed

modified:docs/api.rst+4 added-3 removed
127 unmodified lines
128 instantiated with a lowercase ``session`` for backwards compatibility.129130 ::131132 with requests.Session() as s: # formerly, session took parameters133 s.auth = auth134 s.headers.update(headers)132 s = requests.Session() # formerly, session took parameters133 s.auth = auth134 s.headers.update(headers)135 r = s.get('http://httpbin.org/headers')136137* All request hooks have been removed except 'response'.138139* Authentication helpers have been broken out into separate modules. See
38 unmodified lines