OpenQuizz
Une application de gestion des contenus pédagogiques
BaseAdapter Class Reference
Inheritance diagram for BaseAdapter:
Collaboration diagram for BaseAdapter:

Public Member Functions

def __init__ (self)
 
def send (self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None)
 
def close (self)
 

Detailed Description

The Base Transport Adapter

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)

Member Function Documentation

◆ close()

def close (   self)
Cleans up adapter specific items.

Reimplemented in HTTPAdapter.

◆ send()

def send (   self,
  request,
  stream = False,
  timeout = None,
  verify = True,
  cert = None,
  proxies = None 
)
Sends PreparedRequest object. Returns Response object.

:param request: The :class:`PreparedRequest <PreparedRequest>` being sent.
:param stream: (optional) Whether to stream the request content.
:param timeout: (optional) How long to wait for the server to send
    data before giving up, as a float, or a :ref:`(connect timeout,
    read timeout) <timeouts>` tuple.
:type timeout: float or tuple
:param verify: (optional) Either a boolean, in which case it controls whether we verify
    the server's TLS certificate, or a string, in which case it must be a path
    to a CA bundle to use
:param cert: (optional) Any user-provided SSL certificate to be trusted.
:param proxies: (optional) The proxies dictionary to apply to the request.

Reimplemented in HTTPAdapter.


The documentation for this class was generated from the following file: