1. Benoit Chesneau
  2. py-restclient

Source

py-restclient / docs / transports.txt

The default branch has multiple heads

.. _reftransports:

HTTP Transports
===============

.. module:: restclient.transport

HTTP Transports are object based on :mod:`restclient.transport.HTTPTransportBase` that
perform HTPP operations.

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

.. code-block:: python

    from restclient.transport import CurlTransport
    transport = CurlTransport()
    res = Resource(transport=transport)
    
Functions
---------

.. autofunction:: restclient.transport.createHTTPTransport
.. autofunction:: restclient.transport.getDefaultHTTPTransport
.. autofunction:: restclient.transport.setDefaultHTTPTransport

Response
--------

.. autoclass:: restclient.transport.HTTPResponse

Transports:
-----------

.. autoclass:: restclient.transport.HTTPTransportBase

    .. automethod:: restclient.transport.HTTPTransportBase.__init__
    .. automethod:: restclient.transport.HTTPTransportBase.request
    .. automethod:: restclient.transport.HTTPTransportBase.add_credentials


.. autoclass:: restclient.transport.CurlTransport

    .. automethod:: restclient.transport.CurlTransport.__init__
    .. automethod:: restclient.transport.CurlTransport.add_credentials

.. autoclass:: restclient.transport.HTTPLib2Transport

    .. automethod:: restclient.transport.HTTPLib2Transport.__init__
    .. automethod:: restclient.transport.HTTPLib2Transport.add_credentials