Skip to content
Myr

api.rst

This file

Path

docs/api.rst

106 lines · 1.8 KiB

Last changed by

developer interfaceKenneth Reitzbefore adoption911e8ae

History of this file

Take it

The walk stopped after 200 commits: lines older than 1b70385 point at it.

change default accept-encodingKenneth Reitzbefore adoption1b70385

lines 1–2why, one step back
1.. _api:
2

developer interfaceKenneth Reitzbefore adoption911e8ae

lines 3–4why, one step back
3Developer Interface
4===================

change default accept-encodingKenneth Reitzbefore adoption1b70385

lines 5–28why, one step back
5
6.. module:: requests78This part of the documentation covers all the interfaces of Requests. For9parts where Requests depends on external libraries, we document the most10important right here and provide links to the canonical documentation.111213Main Interface14--------------1516All of Request's functionality can be accessed by these 7 methods.17They all return an instance of the :class:`Response <Response>` object.1819.. autofunction:: request2021.. autofunction:: head22.. autofunction:: get23.. autofunction:: post24.. autofunction:: put25.. autofunction:: patch26.. autofunction:: delete2728

docs updateKenneth Reitzbefore adoption3ddcc99

lines 29–30why, one step back
29Lower-Level Classes
30~~~~~~~~~~~~~~~~~~~

change default accept-encodingKenneth Reitzbefore adoption1b70385

line 31why, one step back
31

docs updateKenneth Reitzbefore adoption3ddcc99

lines 32–37why, one step back
32.. autoclass:: requests.Request
33 :inherited-members:3435.. autoclass:: Response36 :inherited-members:37

request sessionsKenneth Reitzbefore adoption9f89ebe

lines 38–39why, one step back
38Request Sessions
39----------------

change default accept-encodingKenneth Reitzbefore adoption1b70385

line 40why, one step back
40

Merge remote-tracking branch 'origin/develop' into developKenneth Reitzbefore adoption59dea18

lines 41–43why, one step back
41.. autoclass:: Session
42 :inherited-members:43

change default accept-encodingKenneth Reitzbefore adoption1b70385

lines 44–96why, one step back
44
45Exceptions46~~~~~~~~~~4748.. module:: requests4950.. autoexception:: RequestException51.. autoexception:: ConnectionError52.. autoexception:: HTTPError53.. autoexception:: URLRequired54.. autoexception:: TooManyRedirects555657Status Code Lookup58~~~~~~~~~~~~~~~~~~5960.. autofunction:: requests.codes6162::6364 >>> requests.codes['temporary_redirect']65 3076667 >>> requests.codes.teapot68 4186970 >>> requests.codes['\o/']71 2007273Cookies74~~~~~~~7576.. autofunction:: dict_from_cookiejar77.. autofunction:: cookiejar_from_dict78.. autofunction:: add_dict_to_cookiejar798081Encodings82~~~~~~~~~8384.. autofunction:: get_encodings_from_content85.. autofunction:: get_encoding_from_headers86.. autofunction:: get_unicode_from_response87.. autofunction:: decode_gzip888990Classes91~~~~~~~9293.. autoclass:: requests.Response94 :inherited-members:9596.. autoclass:: requests.Request

no async anymoreKenneth Reitzbefore adoptionb3fbc81

lines 97–99why, one step back
97 :inherited-members:
9899.. autoclass:: requests.PreparedRequest

change default accept-encodingKenneth Reitzbefore adoption1b70385

lines 100–106why, one step back
100 :inherited-members:
101102.. _sessionapi:103104.. autoclass:: requests.Session105 :inherited-members:106