Skip to content
Myr

api.rst

This file

Path

docs/api.rst

93 lines · 1.7 KiB

Last changed by

Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef

History of this file

Take it

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

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

Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef

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.

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

line 18why, one step back
18

Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef

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

Merge branch 'release/0.5.0'Kenneth Reitzbefore adoption2d98ca7

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

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

lines 21–23why, one step back
21.. autofunction:: get
22.. autofunction:: post23.. autofunction:: put

Merge branch 'release/0.5.0'Kenneth Reitzbefore adoption2d98ca7

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

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

line 25why, one step back
25.. autofunction:: delete

Merge branch 'release/0.5.0'Kenneth Reitzbefore adoption2d98ca7

line 26why, one step back
26

Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef

line 27why, one step back
27

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

lines 28–30why, one step back
28-----------
2930

Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef

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

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

lines 32–35why, one step back
32 :inherited-members:
333435

Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef

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

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

line 38why, one step back
38

Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef

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

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

line 41why, one step back
41

Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef

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

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

line 43why, one step back
43

Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef

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

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

line 46why, one step back
46

Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef

lines 47–63why, one step back
47.. autofunction:: dict_from_cookiejar
48.. autofunction:: cookiejar_from_dict49.. autofunction:: add_dict_to_cookiejar5051Curl52~~~~53.. autofunction:: curl_from_request5455Encodings56~~~~~~~~~5758.. autofunction:: get_encodings_from_content59.. autofunction:: get_encoding_from_headers60.. autofunction:: get_unicode_from_response61.. autofunction:: decode_gzip6263

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

lines 64–70why, one step back
64Internals
65---------6667These items are an internal component to Requests, and should never be68seen by the end user (developer). This part of the API documentation69exists for those who are extending the functionality of Requests.70

Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef

lines 71–86why, one step back
71Exceptions
72~~~~~~~~~~7374.. module:: requests7576.. autoexception:: HTTPError7778.. autoexception:: RequestException7980.. autoexception:: AuthenticationError81.. autoexception:: URLRequired82.. autoexception:: InvalidMethod83.. autoexception:: TooManyRedirects848586

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

lines 87–89why, one step back
87Classes
88~~~~~~~89

Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef

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

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

line 91why, one step back
91 :inherited-members:

Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef

lines 92–93why, one step back
92
93