api.rst
This file
Path
docs/api.rst
106 lines · 1.8 KiB
Last changed by
request sessionsKenneth Reitzbefore adoption9f89ebe
History of this fileTake it
The walk stopped after 200 commits: lines older than b130b98 point at it.
v0.13.7Kenneth Reitzbefore adoptionb130b98
lines 1–28why, one step back1.. _api:23API4===56.. 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:: delete2728docs updateKenneth Reitzbefore adoption3ddcc99
lines 29–30why, one step back29Lower-Level Classes30~~~~~~~~~~~~~~~~~~~v0.13.7Kenneth Reitzbefore adoptionb130b98
line 31why, one step back31docs updateKenneth Reitzbefore adoption3ddcc99
lines 32–37why, one step back32.. autoclass:: requests.Request33 :inherited-members:3435.. autoclass:: Response36 :inherited-members:37request sessionsKenneth Reitzbefore adoption9f89ebe
lines 38–39why, one step back38Request Sessions39----------------v0.13.7Kenneth Reitzbefore adoptionb130b98
line 40why, one step back40Merge remote-tracking branch 'origin/develop' into developKenneth Reitzbefore adoption59dea18
lines 41–43why, one step back41.. autoclass:: Session42 :inherited-members:43v0.13.7Kenneth Reitzbefore adoptionb130b98
lines 44–96why, one step back4445Exceptions46~~~~~~~~~~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.Requestno async anymoreKenneth Reitzbefore adoptionb3fbc81
lines 97–99why, one step back97 :inherited-members:9899.. autoclass:: requests.PreparedRequestv0.13.7Kenneth Reitzbefore adoptionb130b98
lines 100–106why, one step back100 :inherited-members:101102.. _sessionapi:103104.. autoclass:: requests.Session105 :inherited-members:106