api.rst
This file
Path
docs/api.rst
105 lines · 1.9 KiB
Last changed by
Merge pull request #202 from kennethreitz/feature/content-streamKenneth Reitzbefore adoptionbfa0103
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:: requestMerge branch 'release/0.5.0'Kenneth Reitzbefore adoption2d98ca7
line 20why, one step back20.. autofunction:: headMerge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
lines 21–23why, one step back21.. autofunction:: get22.. autofunction:: post23.. autofunction:: putMerge branch 'release/0.5.0'Kenneth Reitzbefore adoption2d98ca7
line 24why, one step back24.. autofunction:: patchMerge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
line 25why, one step back25.. autofunction:: deleteMerge branch 'release/0.5.0'Kenneth Reitzbefore adoption2d98ca7
line 26why, one step back26Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
line 27why, one step back27Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
lines 28–30why, one step back28-----------2930Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
line 31why, one step back31.. autoclass:: ResponseMerge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
lines 32–33why, one step back32 :inherited-members:33Merge pull request #202 from kennethreitz/feature/content-streamKenneth Reitzbefore adoptionbfa0103
lines 34–35why, one step back34Async35-----Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
line 36why, one step back36Merge pull request #202 from kennethreitz/feature/content-streamKenneth Reitzbefore adoptionbfa0103
line 37why, one step back37.. module:: requests.asyncMerge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
line 38why, one step back38Merge pull request #202 from kennethreitz/feature/content-streamKenneth Reitzbefore adoptionbfa0103
lines 39–50why, one step back3940.. autofunction:: map41.. autofunction:: request42.. autofunction:: head43.. autofunction:: get44.. autofunction:: post45.. autofunction:: put46.. autofunction:: patch47.. autofunction:: delete484950Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
lines 51–52why, one step back51Utilities52---------Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
line 53why, one step back53Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
lines 54–55why, one step back54These functions are used internally, but may be useful outside of55Requests.Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
line 56why, one step back56Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
line 57why, one step back57.. module:: requests.utilsMerge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
line 58why, one step back58Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
lines 59–60why, one step back59Cookies60~~~~~~~Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
line 61why, one step back61Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
lines 62–75why, one step back62.. autofunction:: dict_from_cookiejar63.. autofunction:: cookiejar_from_dict64.. autofunction:: add_dict_to_cookiejar656667Encodings68~~~~~~~~~6970.. autofunction:: get_encodings_from_content71.. autofunction:: get_encoding_from_headers72.. autofunction:: get_unicode_from_response73.. autofunction:: decode_gzip7475Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
lines 76–82why, one step back76Internals77---------7879These items are an internal component to Requests, and should never be80seen by the end user (developer). This part of the API documentation81exists for those who are extending the functionality of Requests.82Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
lines 83–98why, one step back83Exceptions84~~~~~~~~~~8586.. module:: requests8788.. autoexception:: HTTPError8990.. autoexception:: RequestException9192.. autoexception:: AuthenticationError93.. autoexception:: URLRequired94.. autoexception:: InvalidMethod95.. autoexception:: TooManyRedirects969798Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
lines 99–101why, one step back99Classes100~~~~~~~101Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
line 102why, one step back102.. autoclass:: requests.RequestMerge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
line 103why, one step back103 :inherited-members:Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
lines 104–105why, one step back104105