api.rst
This file
Path
docs/api.rst
89 lines · 1.6 KiB
Last changed by
big docs updateKenneth Reitzbefore adoption596aceb
History of this fileTake it
The walk stopped after 200 commits: lines older than 3d1444b point at it.
Update documentation of the "data" parameter for requests.post() to indicate that it allows bytes. Update documentation of requests.put() to refer to the "data" parameter rather than the (hidden, but functional) "params" parameter, and note that that also allows both bytes and dictionaries.Richard Boultonbefore adoption3d1444b
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--------------15big docs updateKenneth Reitzbefore adoption596aceb
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.Update documentation of the "data" parameter for requests.post() to indicate that it allows bytes. Update documentation of requests.put() to refer to the "data" parameter rather than the (hidden, but functional) "params" parameter, and note that that also allows both bytes and dictionaries.Richard Boultonbefore adoption3d1444b
line 18why, one step back18big docs updateKenneth Reitzbefore adoption596aceb
line 19why, one step back19.. autofunction:: requestadd PATCH to docsKenneth Reitzbefore adoption15de7d9
line 20why, one step back20.. autofunction:: headUpdate documentation of the "data" parameter for requests.post() to indicate that it allows bytes. Update documentation of requests.put() to refer to the "data" parameter rather than the (hidden, but functional) "params" parameter, and note that that also allows both bytes and dictionaries.Richard Boultonbefore adoption3d1444b
lines 21–23why, one step back21.. autofunction:: get22.. autofunction:: post23.. autofunction:: putadd PATCH to docsKenneth Reitzbefore adoption15de7d9
line 24why, one step back24.. autofunction:: patchUpdate documentation of the "data" parameter for requests.post() to indicate that it allows bytes. Update documentation of requests.put() to refer to the "data" parameter rather than the (hidden, but functional) "params" parameter, and note that that also allows both bytes and dictionaries.Richard Boultonbefore adoption3d1444b
line 25why, one step back25.. autofunction:: deleteadd PATCH to docsKenneth Reitzbefore adoption15de7d9
line 26why, one step back26big docs updateKenneth Reitzbefore adoption596aceb
line 27why, one step back27Update documentation of the "data" parameter for requests.post() to indicate that it allows bytes. Update documentation of requests.put() to refer to the "data" parameter rather than the (hidden, but functional) "params" parameter, and note that that also allows both bytes and dictionaries.Richard Boultonbefore adoption3d1444b
lines 28–30why, one step back28-----------2930big docs updateKenneth Reitzbefore adoption596aceb
line 31why, one step back31.. autoclass:: ResponseUpdate documentation of the "data" parameter for requests.post() to indicate that it allows bytes. Update documentation of requests.put() to refer to the "data" parameter rather than the (hidden, but functional) "params" parameter, and note that that also allows both bytes and dictionaries.Richard Boultonbefore adoption3d1444b
lines 32–35why, one step back32 :inherited-members:333435big docs updateKenneth Reitzbefore adoption596aceb
lines 36–37why, one step back36Utilities37---------Update documentation of the "data" parameter for requests.post() to indicate that it allows bytes. Update documentation of requests.put() to refer to the "data" parameter rather than the (hidden, but functional) "params" parameter, and note that that also allows both bytes and dictionaries.Richard Boultonbefore adoption3d1444b
line 38why, one step back38big docs updateKenneth Reitzbefore adoption596aceb
lines 39–40why, one step back39These functions are used internally, but may be useful outside of40Requests.Update documentation of the "data" parameter for requests.post() to indicate that it allows bytes. Update documentation of requests.put() to refer to the "data" parameter rather than the (hidden, but functional) "params" parameter, and note that that also allows both bytes and dictionaries.Richard Boultonbefore adoption3d1444b
line 41why, one step back41big docs updateKenneth Reitzbefore adoption596aceb
line 42why, one step back42.. module:: requests.utilsUpdate documentation of the "data" parameter for requests.post() to indicate that it allows bytes. Update documentation of requests.put() to refer to the "data" parameter rather than the (hidden, but functional) "params" parameter, and note that that also allows both bytes and dictionaries.Richard Boultonbefore adoption3d1444b
line 43why, one step back43big docs updateKenneth Reitzbefore adoption596aceb
lines 44–45why, one step back44Cookies45~~~~~~~Update documentation of the "data" parameter for requests.post() to indicate that it allows bytes. Update documentation of requests.put() to refer to the "data" parameter rather than the (hidden, but functional) "params" parameter, and note that that also allows both bytes and dictionaries.Richard Boultonbefore adoption3d1444b
line 46why, one step back46big docs updateKenneth Reitzbefore adoption596aceb
lines 47–59why, one step back47.. autofunction:: dict_from_cookiejar48.. autofunction:: cookiejar_from_dict49.. autofunction:: add_dict_to_cookiejar5051Encodings52~~~~~~~~~5354.. autofunction:: get_encodings_from_content55.. autofunction:: get_encoding_from_headers56.. autofunction:: get_unicode_from_response57.. autofunction:: decode_gzip5859Update documentation of the "data" parameter for requests.post() to indicate that it allows bytes. Update documentation of requests.put() to refer to the "data" parameter rather than the (hidden, but functional) "params" parameter, and note that that also allows both bytes and dictionaries.Richard Boultonbefore adoption3d1444b
lines 60–66why, one step back60Internals61---------6263These items are an internal component to Requests, and should never be64seen by the end user (developer). This part of the API documentation65exists for those who are extending the functionality of Requests.66big docs updateKenneth Reitzbefore adoption596aceb
lines 67–82why, one step back67Exceptions68~~~~~~~~~~6970.. module:: requests7172.. autoexception:: HTTPError7374.. autoexception:: RequestException7576.. autoexception:: AuthenticationError77.. autoexception:: URLRequired78.. autoexception:: InvalidMethod79.. autoexception:: TooManyRedirects808182Update documentation of the "data" parameter for requests.post() to indicate that it allows bytes. Update documentation of requests.put() to refer to the "data" parameter rather than the (hidden, but functional) "params" parameter, and note that that also allows both bytes and dictionaries.Richard Boultonbefore adoption3d1444b
lines 83–85why, one step back83Classes84~~~~~~~85big docs updateKenneth Reitzbefore adoption596aceb
line 86why, one step back86.. autoclass:: requests.RequestUpdate documentation of the "data" parameter for requests.post() to indicate that it allows bytes. Update documentation of requests.put() to refer to the "data" parameter rather than the (hidden, but functional) "params" parameter, and note that that also allows both bytes and dictionaries.Richard Boultonbefore adoption3d1444b
line 87why, one step back87 :inherited-members:big docs updateKenneth Reitzbefore adoption596aceb
lines 88–89why, one step back8889