api.rst
This file
Path
docs/api.rst
106 lines · 1.8 KiB
Last changed by
developer interfaceKenneth Reitzbefore adoption911e8ae
History of this fileTake it
The walk stopped after 200 commits: lines older than 1960dab point at it.
out with chardet, in with charadeKenneth Reitzbefore adoption1960dab
lines 1–2why, one step back1.. _api:2developer interfaceKenneth Reitzbefore adoption911e8ae
lines 3–4why, one step back3Developer Interface4===================out with chardet, in with charadeKenneth Reitzbefore adoption1960dab
lines 5–28why, one step back56.. 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~~~~~~~~~~~~~~~~~~~out with chardet, in with charadeKenneth Reitzbefore adoption1960dab
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----------------out with chardet, in with charadeKenneth Reitzbefore adoption1960dab
lines 40–96why, one step back4041.. autoclass:: Session42 :inherited-members:434445Exceptions46~~~~~~~~~~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.PreparedRequestout with chardet, in with charadeKenneth Reitzbefore adoption1960dab
lines 100–106why, one step back100 :inherited-members:101102.. _sessionapi:103104.. autoclass:: requests.Session105 :inherited-members:106