Skip to content
Myr

api.rst

This file

Path

docs/api.rst

131 lines · 2.2 KiB

Last changed by

no async anymoreKenneth Reitzbefore adoptionb3fbc81

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–40why, 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---------------------222324.. autoclass:: Response25 :inherited-members:2627---------------------2829.. autofunction:: head30.. autofunction:: get31.. autofunction:: post32.. autofunction:: put33.. autofunction:: patch34.. autofunction:: delete353637-----------------3839.. autofunction:: session40

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

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

Merge pull request #787 from kayzh/developKenneth Reitzbefore adoptionbbf1946

lines 44–121why, one step back
44
4546Exceptions47~~~~~~~~~~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.Request

no async anymoreKenneth Reitzbefore adoptionb3fbc81

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

Merge pull request #787 from kayzh/developKenneth Reitzbefore adoptionbbf1946

lines 125–131why, one step back
125 :inherited-members:
126127.. _sessionapi:128129.. autoclass:: requests.Session130 :inherited-members:131