|
Let us walk on the 3-isogeny graph
|
Data Structures | |
| class | ConnectionPool |
| class | HTTPConnectionPool |
| class | HTTPSConnectionPool |
Functions | |
| connection_from_url (url, **kw) | |
| _normalize_host (host, scheme) | |
| _close_pool_connections (pool) | |
Variables | |
| weakref_finalize = weakref.finalize | |
| xrange = six.moves.xrange | |
| log = logging.getLogger(__name__) | |
| _Default = object() | |
| dict | _blocking_errnos = {errno.EAGAIN, errno.EWOULDBLOCK} |
|
protected |
Drains a queue of connections and closes each one.
Definition at line 1124 of file connectionpool.py.
References i.
Referenced by HTTPConnectionPool.close().

|
protected |
Normalize hosts for comparisons and use with sockets.
Definition at line 1106 of file connectionpool.py.
References i.
| connection_from_url | ( | url, | |
| ** | kw | ||
| ) |
Given a url, return an :class:`.ConnectionPool` instance of its host.
This is a shortcut for not having to parse out the scheme, host, and port
of the url before creating an :class:`.ConnectionPool` instance.
:param url:
Absolute URL string that must include the scheme. Port is optional.
:param \\**kw:
Passes additional parameters to the constructor of the appropriate
:class:`.ConnectionPool`. Useful for specifying things like
timeout, maxsize, headers, etc.
Example::
>>> conn = connection_from_url('http://google.com/')
>>> r = conn.request('GET', '/')
Definition at line 1078 of file connectionpool.py.
References i.
|
protected |
Definition at line 109 of file connectionpool.py.
|
protected |
Definition at line 64 of file connectionpool.py.
| log = logging.getLogger(__name__) |
Definition at line 62 of file connectionpool.py.
| weakref_finalize = weakref.finalize |
Definition at line 56 of file connectionpool.py.
| xrange = six.moves.xrange |
Definition at line 60 of file connectionpool.py.