Skip to content
Myr

api.rst

This file

Path

docs/api.rst

105 lines · 1.9 KiB

Last changed by

Merge pull request #202 from kennethreitz/feature/content-streamKenneth Reitzbefore adoptionbfa0103

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

Merge pull request #202 from kennethreitz/feature/content-streamKenneth Reitzbefore adoptionbfa0103

lines 34–35why, one step back
34Async
35-----

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

line 36why, one step back
36

Merge pull request #202 from kennethreitz/feature/content-streamKenneth Reitzbefore adoptionbfa0103

line 37why, one step back
37.. module:: requests.async

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

line 38why, one step back
38

Merge pull request #202 from kennethreitz/feature/content-streamKenneth Reitzbefore adoptionbfa0103

lines 39–50why, one step back
39
40.. autofunction:: map41.. autofunction:: request42.. autofunction:: head43.. autofunction:: get44.. autofunction:: post45.. autofunction:: put46.. autofunction:: patch47.. autofunction:: delete484950

Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef

lines 51–52why, one step back
51Utilities
52---------

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

line 53why, one step back
53

Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef

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

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

line 56why, one step back
56

Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef

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

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

line 58why, one step back
58

Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef

lines 59–60why, one step back
59Cookies
60~~~~~~~

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

line 61why, one step back
61

Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef

lines 62–75why, one step back
62.. autofunction:: dict_from_cookiejar
63.. autofunction:: cookiejar_from_dict64.. autofunction:: add_dict_to_cookiejar656667Encodings68~~~~~~~~~6970.. autofunction:: get_encodings_from_content71.. autofunction:: get_encoding_from_headers72.. autofunction:: get_unicode_from_response73.. autofunction:: decode_gzip7475

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

lines 76–82why, one step back
76Internals
77---------7879These items are an internal component to Requests, and should never be80seen by the end user (developer). This part of the API documentation81exists for those who are extending the functionality of Requests.82

Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef

lines 83–98why, one step back
83Exceptions
84~~~~~~~~~~8586.. module:: requests8788.. autoexception:: HTTPError8990.. autoexception:: RequestException9192.. autoexception:: AuthenticationError93.. autoexception:: URLRequired94.. autoexception:: InvalidMethod95.. autoexception:: TooManyRedirects969798

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

lines 99–101why, one step back
99Classes
100~~~~~~~101

Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef

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

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

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

Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef

lines 104–105why, one step back
104
105