Skip to content
Myr

api.rst

This file

Path

docs/api.rst

68 lines · 1.3 KiB

Last changed by

:+1:Kenneth Reitzbefore adoptionf18c40f

History of this file

Take it

Big API updateKenneth Reitzbefore adoption6e13e73

lines 1–2why, one step back
1.. _api:
2

api.py -> api.rstKenneth Reitzbefore adoption58d5e03

lines 3–5why, one step back
3API
4===5

Big API updateKenneth Reitzbefore adoption6e13e73

line 6why, one step back
6.. module:: requests

api.py -> api.rstKenneth Reitzbefore adoption58d5e03

line 7why, one step back
7

Big API updateKenneth Reitzbefore adoption6e13e73

lines 8–12why, one step back
8This part of the documentation covers all the interfaces of Requests. For
9parts where Requests depends on external libraries, we document the most10important right here and provide links to the canonical documentation.1112

api.py -> api.rstKenneth Reitzbefore adoption58d5e03

lines 13–15why, one step back
13Main Interface
14--------------15

:+1:Kenneth Reitzbefore adoptionf18c40f

line 16why, one step back
16All of Request's functionality can be accessed by these 6 methods. They

api updateKenneth Reitzbefore adoption7929bb9

lines 17–18why, one step back
17all return a :class:`Response <models.Response>` object.
18

add PATCH to docsKenneth Reitzbefore adoption15de7d9

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

Big API updateKenneth Reitzbefore adoption6e13e73

lines 20–22why, one step back
20.. autofunction:: get
21.. autofunction:: post22.. autofunction:: put

add PATCH to docsKenneth Reitzbefore adoption15de7d9

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

Big API updateKenneth Reitzbefore adoption6e13e73

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

add PATCH to docsKenneth Reitzbefore adoption15de7d9

line 25why, one step back
25

api updateKenneth Reitzbefore adoption7929bb9

lines 26–28why, one step back
26
27-----------28

api.py -> api.rstKenneth Reitzbefore adoption58d5e03

line 29why, one step back
29

Big API updateKenneth Reitzbefore adoption6e13e73

lines 30–33why, one step back
30.. autoclass:: requests.models.Response
31 :inherited-members:3233

api.py -> api.rstKenneth Reitzbefore adoption58d5e03

lines 34–36why, one step back
34Exceptions
35----------36

Big API updateKenneth Reitzbefore adoption6e13e73

line 37why, one step back
37.. autoexception:: HTTPError

api.py -> api.rstKenneth Reitzbefore adoption58d5e03

line 38why, one step back
38

Big API updateKenneth Reitzbefore adoption6e13e73

lines 39–45why, one step back
39.. autoexception:: RequestException
4041.. autoexception:: requests.models.AuthenticationError42.. autoexception:: requests.models.URLRequired43.. autoexception:: requests.models.InvalidMethod4445

api.py -> api.rstKenneth Reitzbefore adoption58d5e03

lines 46–47why, one step back
46Internals
47---------

Big API updateKenneth Reitzbefore adoption6e13e73

lines 48–68why, one step back
48
49These items are an internal component to Requests, and should never be50seen by the end user (developer). This part of the API documentation51exists for those who are extending the functionality of Requests.5253Functions54~~~~~~~~~5556.. autofunction:: request5758Classes59~~~~~~~6061.. autoclass:: requests.models.Request62 :inherited-members:6364Structures65~~~~~~~~~~6667.. autoclass:: requests.structures.CaseInsensitiveDict68 :inherited-members: