Skip to content
Myr

api.rst

This file

Path

docs/api.rst

89 lines · 1.6 KiB

Last changed by

big docs updateKenneth Reitzbefore adoption596aceb

History of this file

Take 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 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--------------15

big docs updateKenneth Reitzbefore adoption596aceb

lines 16–17why, one step back
16All 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 back
18

big docs updateKenneth Reitzbefore adoption596aceb

line 19why, one step back
19.. autofunction:: request

add PATCH to docsKenneth Reitzbefore adoption15de7d9

line 20why, one step back
20.. autofunction:: head

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 21–23why, one step back
21.. autofunction:: get
22.. autofunction:: post23.. autofunction:: put

add PATCH to docsKenneth Reitzbefore adoption15de7d9

line 24why, one step back
24.. autofunction:: patch

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 25why, one step back
25.. autofunction:: delete

add PATCH to docsKenneth Reitzbefore adoption15de7d9

line 26why, one step back
26

big docs updateKenneth Reitzbefore adoption596aceb

line 27why, one step back
27

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 28–30why, one step back
28-----------
2930

big docs updateKenneth Reitzbefore adoption596aceb

line 31why, one step back
31.. autoclass:: Response

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 32–35why, one step back
32 :inherited-members:
333435

big docs updateKenneth Reitzbefore adoption596aceb

lines 36–37why, one step back
36Utilities
37---------

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 back
38

big docs updateKenneth Reitzbefore adoption596aceb

lines 39–40why, one step back
39These functions are used internally, but may be useful outside of
40Requests.

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 back
41

big docs updateKenneth Reitzbefore adoption596aceb

line 42why, one step back
42.. module:: requests.utils

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 43why, one step back
43

big docs updateKenneth Reitzbefore adoption596aceb

lines 44–45why, one step back
44Cookies
45~~~~~~~

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 back
46

big docs updateKenneth Reitzbefore adoption596aceb

lines 47–59why, one step back
47.. autofunction:: dict_from_cookiejar
48.. 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_gzip5859

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 60–66why, one step back
60Internals
61---------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.66

big docs updateKenneth Reitzbefore adoption596aceb

lines 67–82why, one step back
67Exceptions
68~~~~~~~~~~6970.. module:: requests7172.. autoexception:: HTTPError7374.. autoexception:: RequestException7576.. autoexception:: AuthenticationError77.. autoexception:: URLRequired78.. autoexception:: InvalidMethod79.. autoexception:: TooManyRedirects808182

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 83–85why, one step back
83Classes
84~~~~~~~85

big docs updateKenneth Reitzbefore adoption596aceb

line 86why, one step back
86.. autoclass:: requests.Request

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 87why, one step back
87 :inherited-members:

big docs updateKenneth Reitzbefore adoption596aceb

lines 88–89why, one step back
88
89