api.rst
This file
Path
docs/api.rst
93 lines · 1.7 KiB
Last changed by
Merge branch 'feature/curl' into developKenneth Reitzbefore adoptiondd5a397
History of this fileTake it
The walk stopped after 200 commits: lines older than 023ab75 point at it.
Move the code to encode the request data into a static helper method - I think this makes the code clearer, but it also prepares the way for reusing the encoding codeRichard Boultonbefore adoption023ab75
lines 1–15why, one step back1.. _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--------------15big docs updateKenneth Reitzbefore adoption596aceb
lines 16–17why, one step back16All of Request's functionality can be accessed by these 7 methods.17They all return an instance of the :class:`Response <Response>` object.Move the code to encode the request data into a static helper method - I think this makes the code clearer, but it also prepares the way for reusing the encoding codeRichard Boultonbefore adoption023ab75
line 18why, one step back18big docs updateKenneth Reitzbefore adoption596aceb
line 19why, one step back19.. autofunction:: requestadd PATCH to docsKenneth Reitzbefore adoption15de7d9
line 20why, one step back20.. autofunction:: headMove the code to encode the request data into a static helper method - I think this makes the code clearer, but it also prepares the way for reusing the encoding codeRichard Boultonbefore adoption023ab75
lines 21–23why, one step back21.. autofunction:: get22.. autofunction:: post23.. autofunction:: putadd PATCH to docsKenneth Reitzbefore adoption15de7d9
line 24why, one step back24.. autofunction:: patchMove the code to encode the request data into a static helper method - I think this makes the code clearer, but it also prepares the way for reusing the encoding codeRichard Boultonbefore adoption023ab75
line 25why, one step back25.. autofunction:: deleteadd PATCH to docsKenneth Reitzbefore adoption15de7d9
line 26why, one step back26big docs updateKenneth Reitzbefore adoption596aceb
line 27why, one step back27Move the code to encode the request data into a static helper method - I think this makes the code clearer, but it also prepares the way for reusing the encoding codeRichard Boultonbefore adoption023ab75
lines 28–30why, one step back28-----------2930big docs updateKenneth Reitzbefore adoption596aceb
line 31why, one step back31.. autoclass:: ResponseMove the code to encode the request data into a static helper method - I think this makes the code clearer, but it also prepares the way for reusing the encoding codeRichard Boultonbefore adoption023ab75
lines 32–35why, one step back32 :inherited-members:333435big docs updateKenneth Reitzbefore adoption596aceb
lines 36–37why, one step back36Utilities37---------Move the code to encode the request data into a static helper method - I think this makes the code clearer, but it also prepares the way for reusing the encoding codeRichard Boultonbefore adoption023ab75
line 38why, one step back38big docs updateKenneth Reitzbefore adoption596aceb
lines 39–40why, one step back39These functions are used internally, but may be useful outside of40Requests.Move the code to encode the request data into a static helper method - I think this makes the code clearer, but it also prepares the way for reusing the encoding codeRichard Boultonbefore adoption023ab75
line 41why, one step back41big docs updateKenneth Reitzbefore adoption596aceb
line 42why, one step back42.. module:: requests.utilsMove the code to encode the request data into a static helper method - I think this makes the code clearer, but it also prepares the way for reusing the encoding codeRichard Boultonbefore adoption023ab75
line 43why, one step back43big docs updateKenneth Reitzbefore adoption596aceb
lines 44–45why, one step back44Cookies45~~~~~~~Move the code to encode the request data into a static helper method - I think this makes the code clearer, but it also prepares the way for reusing the encoding codeRichard Boultonbefore adoption023ab75
line 46why, one step back46big docs updateKenneth Reitzbefore adoption596aceb
lines 47–50why, one step back47.. autofunction:: dict_from_cookiejar48.. autofunction:: cookiejar_from_dict49.. autofunction:: add_dict_to_cookiejar50Merge branch 'feature/curl' into developKenneth Reitzbefore adoptiondd5a397
lines 51–54why, one step back51Curl52~~~~53.. autofunction:: curl_from_request54big docs updateKenneth Reitzbefore adoption596aceb
lines 55–63why, one step back55Encodings56~~~~~~~~~5758.. autofunction:: get_encodings_from_content59.. autofunction:: get_encoding_from_headers60.. autofunction:: get_unicode_from_response61.. autofunction:: decode_gzip6263Move the code to encode the request data into a static helper method - I think this makes the code clearer, but it also prepares the way for reusing the encoding codeRichard Boultonbefore adoption023ab75
lines 64–70why, one step back64Internals65---------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.70big docs updateKenneth Reitzbefore adoption596aceb
lines 71–86why, one step back71Exceptions72~~~~~~~~~~7374.. module:: requests7576.. autoexception:: HTTPError7778.. autoexception:: RequestException7980.. autoexception:: AuthenticationError81.. autoexception:: URLRequired82.. autoexception:: InvalidMethod83.. autoexception:: TooManyRedirects848586Move the code to encode the request data into a static helper method - I think this makes the code clearer, but it also prepares the way for reusing the encoding codeRichard Boultonbefore adoption023ab75
lines 87–89why, one step back87Classes88~~~~~~~89big docs updateKenneth Reitzbefore adoption596aceb
line 90why, one step back90.. autoclass:: requests.RequestMove the code to encode the request data into a static helper method - I think this makes the code clearer, but it also prepares the way for reusing the encoding codeRichard Boultonbefore adoption023ab75
line 91why, one step back91 :inherited-members:big docs updateKenneth Reitzbefore adoption596aceb
lines 92–93why, one step back9293