api.rst
This file
Path
docs/api.rst
131 lines · 2.2 KiB
Last changed by
docs updateKenneth Reitzbefore adoption3ddcc99
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–39why, one step back32.. autoclass:: requests.Request33 :inherited-members:3435.. autoclass:: Response36 :inherited-members:3738Sessions39--------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–121why, one step back444546Exceptions47~~~~~~~~~~4849.. module:: requests5051.. autoexception:: RequestException52.. autoexception:: ConnectionError53.. autoexception:: HTTPError54.. autoexception:: URLRequired55.. autoexception:: TooManyRedirects565758.. _configurations:5960Configurations61--------------6263.. automodule:: requests.defaults646566Utilities67---------6869These functions are used internally, but may be useful outside of70Requests.7172.. module:: requests.utils7374Status Code Lookup75~~~~~~~~~~~~~~~~~~7677.. autofunction:: requests.codes7879::8081 >>> requests.codes['temporary_redirect']82 3078384 >>> requests.codes.teapot85 4188687 >>> requests.codes['\o/']88 2008990Cookies91~~~~~~~9293.. autofunction:: dict_from_cookiejar94.. autofunction:: cookiejar_from_dict95.. autofunction:: add_dict_to_cookiejar969798Encodings99~~~~~~~~~100101.. autofunction:: get_encodings_from_content102.. autofunction:: get_encoding_from_headers103.. autofunction:: get_unicode_from_response104.. autofunction:: decode_gzip105106107Internals108---------109110These items are an internal component to Requests, and should never be111seen by the end user (developer). This part of the API documentation112exists for those who are extending the functionality of Requests.113114115Classes116~~~~~~~117118.. autoclass:: requests.Response119 :inherited-members:120121.. autoclass:: requests.Requestno async anymoreKenneth Reitzbefore adoptionb3fbc81
lines 122–124why, one step back122 :inherited-members:123124.. autoclass:: requests.PreparedRequestv0.13.7Kenneth Reitzbefore adoptionb130b98
lines 125–131why, one step back125 :inherited-members:126127.. _sessionapi:128129.. autoclass:: requests.Session130 :inherited-members:131