Skip to content
Myr

api.rst

This file

Path

docs/api.rst

66 lines · 1.3 KiB

Last changed by

api updateKenneth Reitzbefore adoption7929bb9

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

api updateKenneth Reitzbefore adoption7929bb9

lines 16–18why, one step back
16All of Request's functionality can be accessed by these 5 methods. They
17all return a :class:`Response <models.Response>` object.18

Big API updateKenneth Reitzbefore adoption6e13e73

lines 19–23why, one step back
19.. autofunction:: get
20.. autofunction:: post21.. autofunction:: put22.. autofunction:: delete23.. autofunction:: head

api updateKenneth Reitzbefore adoption7929bb9

lines 24–26why, one step back
24
25-----------26

api.py -> api.rstKenneth Reitzbefore adoption58d5e03

line 27why, one step back
27

Big API updateKenneth Reitzbefore adoption6e13e73

lines 28–31why, one step back
28.. autoclass:: requests.models.Response
29 :inherited-members:3031

api.py -> api.rstKenneth Reitzbefore adoption58d5e03

lines 32–34why, one step back
32Exceptions
33----------34

Big API updateKenneth Reitzbefore adoption6e13e73

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

api.py -> api.rstKenneth Reitzbefore adoption58d5e03

line 36why, one step back
36

Big API updateKenneth Reitzbefore adoption6e13e73

lines 37–43why, one step back
37.. autoexception:: RequestException
3839.. autoexception:: requests.models.AuthenticationError40.. autoexception:: requests.models.URLRequired41.. autoexception:: requests.models.InvalidMethod4243

api.py -> api.rstKenneth Reitzbefore adoption58d5e03

lines 44–45why, one step back
44Internals
45---------

Big API updateKenneth Reitzbefore adoption6e13e73

lines 46–66why, one step back
46
47These items are an internal component to Requests, and should never be48seen by the end user (developer). This part of the API documentation49exists for those who are extending the functionality of Requests.5051Functions52~~~~~~~~~5354.. autofunction:: request5556Classes57~~~~~~~5859.. autoclass:: requests.models.Request60 :inherited-members:6162Structures63~~~~~~~~~~6465.. autoclass:: requests.structures.CaseInsensitiveDict66 :inherited-members: