Skip to content
Myr

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 file

Take it

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--------------1516All of Request's functionality can be accessed by these 7 methods.17They all return an instance of the :class:`Response <Response>` object.1819.. autofunction:: request20.. autofunction:: head21.. autofunction:: get22.. autofunction:: post23.. autofunction:: put24.. autofunction:: patch25.. autofunction:: delete262728-----------293031.. autoclass:: Response32   :inherited-members:33343536Utilities37---------3839These functions are used internally, but may be useful outside of40Requests.4142.. module:: requests.utils4344Cookies45~~~~~~~4647.. autofunction:: dict_from_cookiejar48.. 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_gzip626364Internals65---------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.7071Exceptions72~~~~~~~~~~7374.. module:: requests7576.. autoexception:: HTTPError7778.. autoexception:: RequestException7980.. autoexception:: AuthenticationError81.. autoexception:: URLRequired82.. autoexception:: InvalidMethod83.. autoexception:: TooManyRedirects84858687Classes88~~~~~~~8990.. autoclass:: requests.Request91   :inherited-members:9293