Skip to content
Myr

api.rst

This file

Path

docs/api.rst

133 lines · 2.2 KiB

Last changed by

requestKenneth Reitzbefore adoptionaa3347b

History of this file

Take it

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

Merge pull request #787 from kayzh/developKenneth Reitzbefore adoptionbbf1946

lines 1–22why, one step back
1.. _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---------------------22

requestKenneth Reitzbefore adoptionaa3347b

lines 23–24why, one step back
23.. autoclass:: requests.Request
24 :inherited-members:

Merge pull request #787 from kayzh/developKenneth Reitzbefore adoptionbbf1946

lines 25–42why, one step back
25
26.. autoclass:: Response27 :inherited-members:2829---------------------3031.. autofunction:: head32.. autofunction:: get33.. autofunction:: post34.. autofunction:: put35.. autofunction:: patch36.. autofunction:: delete373839-----------------4041.. autofunction:: session42

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

lines 43–45why, one step back
43.. autoclass:: Session
44 :inherited-members:45

Merge pull request #787 from kayzh/developKenneth Reitzbefore adoptionbbf1946

lines 46–123why, one step back
46
4748Exceptions49~~~~~~~~~~5051.. module:: requests5253.. autoexception:: RequestException54.. autoexception:: ConnectionError55.. autoexception:: HTTPError56.. autoexception:: URLRequired57.. autoexception:: TooManyRedirects585960.. _configurations:6162Configurations63--------------6465.. automodule:: requests.defaults666768Utilities69---------7071These functions are used internally, but may be useful outside of72Requests.7374.. module:: requests.utils7576Status Code Lookup77~~~~~~~~~~~~~~~~~~7879.. autofunction:: requests.codes8081::8283 >>> requests.codes['temporary_redirect']84 3078586 >>> requests.codes.teapot87 4188889 >>> requests.codes['\o/']90 2009192Cookies93~~~~~~~9495.. autofunction:: dict_from_cookiejar96.. autofunction:: cookiejar_from_dict97.. autofunction:: add_dict_to_cookiejar9899100Encodings101~~~~~~~~~102103.. autofunction:: get_encodings_from_content104.. autofunction:: get_encoding_from_headers105.. autofunction:: get_unicode_from_response106.. autofunction:: decode_gzip107108109Internals110---------111112These items are an internal component to Requests, and should never be113seen by the end user (developer). This part of the API documentation114exists for those who are extending the functionality of Requests.115116117Classes118~~~~~~~119120.. autoclass:: requests.Response121 :inherited-members:122123.. autoclass:: requests.Request

no async anymoreKenneth Reitzbefore adoptionb3fbc81

lines 124–126why, one step back
124 :inherited-members:
125126.. autoclass:: requests.PreparedRequest

Merge pull request #787 from kayzh/developKenneth Reitzbefore adoptionbbf1946

lines 127–133why, one step back
127 :inherited-members:
128129.. _sessionapi:130131.. autoclass:: requests.Session132 :inherited-members:133