Skip to content
Myr

api.rst

This file

Path

docs/api.rst

147 lines · 2.4 KiB

Last changed by

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

History of this file

Take it

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

Merge pull request #581 from crodjer/developKenneth Reitzbefore adoption38e6695

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 #581 from crodjer/developKenneth Reitzbefore adoption38e6695

lines 44–147why, one step back
44
4546Exceptions47~~~~~~~~~~4849.. module:: requests5051.. autoexception:: RequestException52.. autoexception:: ConnectionError53.. autoexception:: HTTPError54.. autoexception:: URLRequired55.. autoexception:: TooManyRedirects565758.. _configurations:5960Configurations61--------------6263.. automodule:: requests.defaults646566.. _async:6768Async69-----7071.. module:: requests.async727374.. autofunction:: map75.. autofunction:: request76.. autofunction:: head77.. autofunction:: get78.. autofunction:: post79.. autofunction:: put80.. autofunction:: patch81.. autofunction:: delete82838485Utilities86---------8788These functions are used internally, but may be useful outside of89Requests.9091.. module:: requests.utils9293Status Code Lookup94~~~~~~~~~~~~~~~~~~9596.. autofunction:: requests.codes9798::99100 >>> requests.codes['temporary_redirect']101 307102103 >>> requests.codes.teapot104 418105106 >>> requests.codes['\o/']107 200108109Cookies110~~~~~~~111112.. autofunction:: dict_from_cookiejar113.. autofunction:: cookiejar_from_dict114.. autofunction:: add_dict_to_cookiejar115116117Encodings118~~~~~~~~~119120.. autofunction:: get_encodings_from_content121.. autofunction:: get_encoding_from_headers122.. autofunction:: get_unicode_from_response123.. autofunction:: decode_gzip124125126Internals127---------128129These items are an internal component to Requests, and should never be130seen by the end user (developer). This part of the API documentation131exists for those who are extending the functionality of Requests.132133134Classes135~~~~~~~136137.. autoclass:: requests.Response138 :inherited-members:139140.. autoclass:: requests.Request141 :inherited-members:142143.. _sessionapi:144145.. autoclass:: requests.Session146 :inherited-members:147