api.rst
This file
Path
docs/api.rst
144 lines · 2.3 KiB
Last changed by
refKenneth Reitzbefore adoptiondfbfb23
History of this fileTake it
Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
lines 1–15why, 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--------------15Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
lines 16–17why, one step back16All of Request's functionality can be accessed by these 7 methods.17They all return an instance of the :class:`Response <Response>` object.Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
line 18why, one step back18Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
line 19why, one step back19.. autofunction:: requestbetter api docsKenneth Reitzbefore adoption53bf544
lines 20–28why, one step back2021---------------------222324.. autoclass:: Response25 :inherited-members:2627---------------------28Merge branch 'release/0.5.0'Kenneth Reitzbefore adoption2d98ca7
line 29why, one step back29.. autofunction:: headMerge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
lines 30–32why, one step back30.. autofunction:: get31.. autofunction:: post32.. autofunction:: putMerge branch 'release/0.5.0'Kenneth Reitzbefore adoption2d98ca7
line 33why, one step back33.. autofunction:: patchMerge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
line 34why, one step back34.. autofunction:: deleteMerge branch 'release/0.5.0'Kenneth Reitzbefore adoption2d98ca7
line 35why, one step back35Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
line 36why, one step back36better api docsKenneth Reitzbefore adoption53bf544
line 37why, one step back37-----------------Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
line 38why, one step back38better api docsKenneth Reitzbefore adoption53bf544
line 39why, one step back39.. autofunction:: sessionMerge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
lines 40–41why, one step back4041better api docsKenneth Reitzbefore adoption53bf544
lines 42–54why, one step back4243Exceptions44~~~~~~~~~~4546.. module:: requests4748.. autoexception:: RequestException49.. autoexception:: ConnectionError50.. autoexception:: HTTPError51.. autoexception:: URLRequired52.. autoexception:: TooManyRedirects5354better stepping for elastic designKenneth Reitzbefore adoptiona0c3570
line 55why, one step back55.. _configurations:better api docsKenneth Reitzbefore adoption53bf544
lines 56–62why, one step back5657Configurations58--------------5960.. automodule:: requests.defaults6162better stepping for elastic designKenneth Reitzbefore adoptiona0c3570
line 63why, one step back63.. _async:better api docsKenneth Reitzbefore adoption53bf544
line 64why, one step back64Merge branch 'develop' into feature/rewriteKenneth Reitzbefore adoption95336a0
lines 65–66why, one step back65Async66-----Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
line 67why, one step back67Merge branch 'develop' into feature/rewriteKenneth Reitzbefore adoption95336a0
line 68why, one step back68.. module:: requests.asyncMerge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
line 69why, one step back69Merge branch 'develop' into feature/rewriteKenneth Reitzbefore adoption95336a0
lines 70–81why, one step back7071.. autofunction:: map72.. autofunction:: request73.. autofunction:: head74.. autofunction:: get75.. autofunction:: post76.. autofunction:: put77.. autofunction:: patch78.. autofunction:: delete798081Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
lines 82–83why, one step back82Utilities83---------Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
line 84why, one step back84Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
lines 85–86why, one step back85These functions are used internally, but may be useful outside of86Requests.Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
line 87why, one step back87Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
line 88why, one step back88.. module:: requests.utilsMerge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
line 89why, one step back89better api docsKenneth Reitzbefore adoption53bf544
lines 90–105why, one step back90Status Code Lookup91~~~~~~~~~~~~~~~~~~9293.. autofunction:: requests.codes9495::9697 >>> requests.codes['temporary_redirect']98 30199100 >>> requests.codes.teapot101 416102103 >>> requests.codes['\o/']104 416105Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
lines 106–107why, one step back106Cookies107~~~~~~~Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
line 108why, one step back108Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
lines 109–122why, one step back109.. autofunction:: dict_from_cookiejar110.. autofunction:: cookiejar_from_dict111.. autofunction:: add_dict_to_cookiejar112113114Encodings115~~~~~~~~~116117.. autofunction:: get_encodings_from_content118.. autofunction:: get_encoding_from_headers119.. autofunction:: get_unicode_from_response120.. autofunction:: decode_gzip121122Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
lines 123–129why, one step back123Internals124---------125126These items are an internal component to Requests, and should never be127seen by the end user (developer). This part of the API documentation128exists for those who are extending the functionality of Requests.129Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
line 130why, one step back130Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
lines 131–133why, one step back131Classes132~~~~~~~133better api docsKenneth Reitzbefore adoption53bf544
lines 134–136why, one step back134.. autoclass:: requests.Response135 :inherited-members:136Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
line 137why, one step back137.. autoclass:: requests.RequestMerge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
line 138why, one step back138 :inherited-members:Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
line 139why, one step back139refKenneth Reitzbefore adoptiondfbfb23
lines 140–141why, one step back140.. _sessionapi:141better api docsKenneth Reitzbefore adoption53bf544
lines 142–143why, one step back142.. autoclass:: requests.Session143 :inherited-members:Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
line 144why, one step back144