class HTTPSConnectionPool(HTTPConnectionPool): (source)
Known subclasses: urllib3.contrib.ntlmpool.NTLMConnectionPool
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.
Method | __init__ |
Undocumented |
Class Variable | scheme |
Undocumented |
Instance Variable | assert |
Undocumented |
Instance Variable | assert |
Undocumented |
Instance Variable | ca |
Undocumented |
Instance Variable | ca |
Undocumented |
Instance Variable | cert |
Undocumented |
Instance Variable | cert |
Undocumented |
Instance Variable | key |
Undocumented |
Instance Variable | key |
Undocumented |
Instance Variable | ssl |
Undocumented |
Method | _new |
Return a fresh :class:`http.client.HTTPSConnection`. |
Method | _prepare |
Prepare the ``connection`` for :meth:`urllib3.util.ssl_wrap_socket` and establish the tunnel if proxy is used. |
Method | _prepare |
Establishes a tunnel connection through HTTP CONNECT. |
Method | _validate |
Called right before a request is made, after the socket is created. |
Inherited from HTTPConnectionPool
:
Method | close |
Close all pooled connections and disable the pool. |
Method | is |
Check if the given ``url`` is a member of the same host as this connection pool. |
Method | urlopen |
Get a connection from the pool and perform an HTTP request. This is the lowest level call for making a request, so you'll need to specify all the raw details. |
Instance Variable | block |
Undocumented |
Instance Variable | conn |
Undocumented |
Instance Variable | num |
Undocumented |
Instance Variable | num |
Undocumented |
Instance Variable | pool |
Undocumented |
Instance Variable | proxy |
Undocumented |
Instance Variable | proxy |
Undocumented |
Instance Variable | proxy |
Undocumented |
Instance Variable | retries |
Undocumented |
Instance Variable | strict |
Undocumented |
Instance Variable | timeout |
Undocumented |
Method | _absolute |
Undocumented |
Method | _get |
Get a connection. Will return a pooled connection if one is available. |
Method | _get |
Helper that always returns a :class:`urllib3.util.Timeout` |
Method | _make |
Perform a request on a given urllib connection object taken from our pool. |
Method | _put |
Put a connection back into the pool. |
Method | _raise |
Is the error actually a timeout? Will raise a ReadTimeout or pass |
Inherited from ConnectionPool
(via HTTPConnectionPool
):
Method | __enter__ |
Undocumented |
Method | __exit__ |
Undocumented |
Method | __str__ |
Undocumented |
Instance Variable | host |
Undocumented |
Instance Variable | port |
Undocumented |
Instance Variable | _proxy |
Undocumented |
Inherited from RequestMethods
(via HTTPConnectionPool
, ConnectionPool
):
Method | request |
Make a request using :meth:`urlopen` with the appropriate encoding of ``fields`` based on the ``method`` used. |
Method | request |
Make a request using :meth:`urlopen` with the ``fields`` encoded in the body. This is useful for request methods like POST, PUT, PATCH, etc. |
Method | request |
Make a request using :meth:`urlopen` with the ``fields`` encoded in the url. This is useful for request methods like GET, HEAD, DELETE, etc. |
Instance Variable | headers |
Undocumented |
Class Variable | _encode |
Undocumented |
urllib3.HTTPConnectionPool.__init__
urllib3.contrib.ntlmpool.NTLMConnectionPool
Undocumented
urllib3.HTTPConnectionPool.scheme
urllib3.contrib.ntlmpool.NTLMConnectionPool
Undocumented
urllib3.HTTPConnectionPool._new_conn
urllib3.contrib.ntlmpool.NTLMConnectionPool
Return a fresh :class:`http.client.HTTPSConnection`.
Prepare the ``connection`` for :meth:`urllib3.util.ssl_wrap_socket` and establish the tunnel if proxy is used.
Establishes a tunnel connection through HTTP CONNECT. Tunnel connection is established early because otherwise httplib would improperly set Host: header to proxy's IP:port.