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

Public Member Functions

def __init__ (self, host, port=None)
 
def __str__ (self)
 
def __enter__ (self)
 
def __exit__ (self, exc_type, exc_val, exc_tb)
 
def close (self)
 

Data Fields

 host
 
 port
 

Static Public Attributes

 scheme
 
 QueueCls
 

Detailed Description

Base class for all connection pools, such as
:class:`.HTTPConnectionPool` and :class:`.HTTPSConnectionPool`.

.. note::
   ConnectionPool.urlopen() does not normalize or percent-encode target URIs
   which is useful if your target server doesn't support percent-encoded
   target URIs.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  host,
  port = None 
)

Member Function Documentation

◆ __enter__()

def __enter__ (   self)

◆ __exit__()

def __exit__ (   self,
  exc_type,
  exc_val,
  exc_tb 
)

◆ __str__()

def __str__ (   self)

◆ close()

def close (   self)
Close all pooled connections and disable the pool.

Reimplemented in HTTPConnectionPool.

Field Documentation

◆ host

host

◆ port

port

◆ QueueCls

QueueCls
static

◆ scheme

scheme
static

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