Skip to content
Myr

better api docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent e725f30 · Browse files · 1 file+53 added−18 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+53 added−18 removed

  • other:+53 added−18 removed

1 file+53 added−18 removed

modified:docs/api.rst+53 added-18 removed
15 unmodified lines
16All 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:: delete353628-----------37-----------------3839.. autofunction:: session4031.. autoclass:: Response32 :inherited-members:414243Exceptions44~~~~~~~~~~4546.. module:: requests4748.. autoexception:: RequestException49.. autoexception:: ConnectionError50.. autoexception:: HTTPError51.. autoexception:: URLRequired52.. autoexception:: TooManyRedirects53545556Configurations57--------------5859.. automodule:: requests.defaults60616263Async64-----6566.. module:: requests.async
17 unmodified lines
84Requests.8586.. module:: requests.utils8788Status Code Lookup89~~~~~~~~~~~~~~~~~~9091.. autofunction:: requests.codes9293::9495 >>> requests.codes['temporary_redirect']96 3019798 >>> requests.codes.teapot99 416100101 >>> requests.codes['\o/']102 416103104Cookies105~~~~~~~106107.. autofunction:: dict_from_cookiejar
16 unmodified lines
124These items are an internal component to Requests, and should never be125seen by the end user (developer). This part of the API documentation126exists for those who are extending the functionality of Requests.12783Exceptions84~~~~~~~~~~12886.. module:: requests8788.. autoexception:: HTTPError8990.. autoexception:: RequestException9192.. autoexception:: AuthenticationError93.. autoexception:: URLRequired94.. autoexception:: InvalidMethod95.. autoexception:: TooManyRedirects969798129Classes130~~~~~~~131132.. autoclass:: requests.Response133 :inherited-members:134135.. autoclass:: requests.Request136 :inherited-members:137138.. autoclass:: requests.Session139 :inherited-members:140