Skip to content
Myr

session object should be uppercase

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

authored by Kwpolska · committed by Kwpolska · parent 022c370 · Browse files · 1 file+2 added−2 removed
This commit

State

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

Trailers

  • Signed-off-by: Kwpolska <kwpolska@gmail.com>

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/user/advanced.rst+2 added-2 removed
11 unmodified lines
12The Session object allows you to persist certain parameters across13requests. It also persists cookies across all requests made from the14Session instance.1516A session object has all the methods of the main Requests API.16A Session object has all the methods of the main Requests API.1718Let's persist some cookies across requests::1920 s = requests.Session()
5 unmodified lines
26 # '{"cookies": {"sessioncookie": "123456789"}}'272829Sessions can also be used to provide default data to the request methods. This30is done by providing data to the properties on a session object::30is done by providing data to the properties on a Session object::3132 s = requests.Session()33 s.auth = ('user', 'pass')34 s.headers.update({'x-test': 'true'})
560 unmodified lines