Source

py-restclient / docs / _build / html / _sources / httpclient.txt

The default branch has multiple heads

Full commit
.. _httpclient:

HTTP Clients
============

.. module:: restclient.http

HTTP Clients are object based on :mod:`restclient.http.HTTPClient` that
perform HTPP operations.

You can choose the one you want as httpclient in Resource or RestClient:

.. code-block:: python

    from restclient.http import CurlHTTPClient
    httpclient = CurlHTTPClient()
    res = Resource(httpclient=httpclient)
    
Functions
---------

.. autofunction:: restclient.http.createHTTPClient
.. autofunction:: restclient.http.getDefaultHTTPClient
.. autofunction:: restclient.http.setDefaultHTTPClient

Clients:
--------
.. autoclass:: restclient.http.HTTPClient

    .. automethod:: restclient.http.HTTPClient.request


.. autoclass:: restclient.http.Urllib2HTTPClient

    .. automethod:: restclient.http.Urllib2HTTPClient.__init__

.. autoclass:: restclient.http.CurlHTTPClient

    .. automethod:: restclient.http.CurlHTTPClient.__init__
    .. automethod:: restclient.http.CurlHTTPClient.add_credentials

.. autoclass:: restclient.http.HTTPLib2HTTPClient