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

Public Member Functions

def __init__ (self, host, port=None, strict=False, timeout=Timeout.DEFAULT_TIMEOUT, maxsize=1, block=False, headers=None, retries=None, _proxy=None, _proxy_headers=None, key_file=None, cert_file=None, cert_reqs=None, key_password=None, ca_certs=None, ssl_version=None, assert_hostname=None, assert_fingerprint=None, ca_cert_dir=None, **conn_kw)
 
- Public Member Functions inherited from HTTPConnectionPool
def __init__ (self, host, port=None, strict=False, timeout=Timeout.DEFAULT_TIMEOUT, maxsize=1, block=False, headers=None, retries=None, _proxy=None, _proxy_headers=None, _proxy_config=None, **conn_kw)
 
def close (self)
 
def is_same_host (self, url)
 
def urlopen (self, method, url, body=None, headers=None, retries=None, redirect=True, assert_same_host=True, timeout=_Default, pool_timeout=None, release_conn=None, chunked=False, body_pos=None, **response_kw)
 
- Public Member Functions inherited from ConnectionPool
def __init__ (self, host, port=None)
 
def __str__ (self)
 
def __enter__ (self)
 
def __exit__ (self, exc_type, exc_val, exc_tb)
 
- Public Member Functions inherited from RequestMethods
def __init__ (self, headers=None)
 
def urlopen (self, method, url, body=None, headers=None, encode_multipart=True, multipart_boundary=None, **kw)
 
def request (self, method, url, fields=None, headers=None, **urlopen_kw)
 
def request_encode_url (self, method, url, fields=None, headers=None, **urlopen_kw)
 
def request_encode_body (self, method, url, fields=None, headers=None, encode_multipart=True, multipart_boundary=None, **urlopen_kw)
 

Data Fields

 key_file
 
 cert_file
 
 cert_reqs
 
 key_password
 
 ca_certs
 
 ca_cert_dir
 
 ssl_version
 
 assert_hostname
 
 assert_fingerprint
 
- Data Fields inherited from HTTPConnectionPool
 strict
 
 timeout
 
 retries
 
 pool
 
 block
 
 proxy
 
 proxy_headers
 
 proxy_config
 
 num_connections
 
 num_requests
 
 conn_kw
 
- Data Fields inherited from ConnectionPool
 host
 
 port
 
- Data Fields inherited from RequestMethods
 headers
 

Static Public Attributes

 scheme
 
 ConnectionCls
 
- Static Public Attributes inherited from HTTPConnectionPool
 scheme
 
 ConnectionCls
 
 ResponseCls
 
- Static Public Attributes inherited from ConnectionPool
 scheme
 
 QueueCls
 

Detailed Description

Same as :class:`.HTTPConnectionPool`, but HTTPS.

:class:`.HTTPSConnection` uses one of ``assert_fingerprint``,
``assert_hostname`` and ``host`` in this order to verify connections.
If ``assert_hostname`` is False, no verification is done.

The ``key_file``, ``cert_file``, ``cert_reqs``, ``ca_certs``,
``ca_cert_dir``, ``ssl_version``, ``key_password`` are only used if :mod:`ssl`
is available and are fed into :meth:`urllib3.util.ssl_wrap_socket` to upgrade
the connection socket into an SSL socket.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  host,
  port = None,
  strict = False,
  timeout = Timeout.DEFAULT_TIMEOUT,
  maxsize = 1,
  block = False,
  headers = None,
  retries = None,
  _proxy = None,
  _proxy_headers = None,
  key_file = None,
  cert_file = None,
  cert_reqs = None,
  key_password = None,
  ca_certs = None,
  ssl_version = None,
  assert_hostname = None,
  assert_fingerprint = None,
  ca_cert_dir = None,
**  conn_kw 
)

Field Documentation

◆ assert_fingerprint

assert_fingerprint

◆ assert_hostname

assert_hostname

◆ ca_cert_dir

ca_cert_dir

◆ ca_certs

ca_certs

◆ cert_file

cert_file

◆ cert_reqs

cert_reqs

◆ ConnectionCls

ConnectionCls
static

◆ key_file

key_file

◆ key_password

key_password

◆ scheme

scheme
static

◆ ssl_version

ssl_version

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