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

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:3334Async35-----3637.. module:: requests.async383940.. autofunction:: map41.. autofunction:: request42.. autofunction:: head43.. autofunction:: get44.. autofunction:: post45.. autofunction:: put46.. autofunction:: patch47.. autofunction:: delete48495051Utilities52---------5354These functions are used internally, but may be useful outside of55Requests.5657.. module:: requests.utils5859Cookies60~~~~~~~6162.. autofunction:: dict_from_cookiejar63.. 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_gzip747576Internals77---------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.8283Exceptions84~~~~~~~~~~8586.. module:: requests8788.. autoexception:: HTTPError8990.. autoexception:: RequestException9192.. autoexception:: AuthenticationError93.. autoexception:: URLRequired94.. autoexception:: InvalidMethod95.. autoexception:: TooManyRedirects96979899Classes100~~~~~~~101102.. autoclass:: requests.Request103   :inherited-members:104105