![JAR search and dependency download from the Maven repository](/logo.png)
kr.motd.maven.sphinx.dist.urllib3.connectionpool$py.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sphinx-maven-plugin Show documentation
Show all versions of sphinx-maven-plugin Show documentation
Maven plugin that creates the site with Sphinx
???? 1? f$0 R(Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; org/python/core/PyFrame setline (I)V
__future__ java/lang/String absolute_import
org/python/core/imp
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject;
setlocal /(Ljava/lang/String;Lorg/python/core/PyObject;)V
errno importOne H(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject;
logging sys ! warnings # socket % error ' timeout ) SocketError +
SocketTimeout -
exceptions / ClosedPoolError 1
ProtocolError 3 EmptyPoolError 5 HeaderParsingError 7 HostChangedError 9 LocationValueError ;
MaxRetryError =
ProxyError ? ReadTimeoutError A SSLError C TimeoutError E InsecureRequestWarning G NewConnectionError I packages.ssl_match_hostname K CertificateError M packages O six Q packages.six.moves S queue U
connection W port_by_scheme Y DummyConnection [ HTTPConnection ] HTTPSConnection _ VerifiedHTTPSConnection a
HTTPException c BaseSSLError e request g RequestMethods i response k HTTPResponse m util.connection o is_connection_dropped q util.request s set_file_position u
util.response w assert_header_parsing y
util.retry { Retry } util.timeout Timeout ? util.url ? get_host ? Url ? getname .(Ljava/lang/String;)Lorg/python/core/PyObject; ? ?
? PY2 ? org/python/core/PyObject ? __getattr__ ? ?
? ? __nonzero__ ()Z ? ?
? ? Queue ? importOneAs ?
? _unused_module_Queue ? moves ? xrange ? getLogger ? __name__ ? __call__ S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
? ? log ? object ? 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; ? ?
? ? _Default ? ConnectionPool ? ConnectionPool$1
__module__ ? __doc__ ? z
Base class for all connection pools, such as
:class:`.HTTPConnectionPool` and :class:`.HTTPSConnectionPool`.
? org/python/core/PyString ? fromInterned .(Ljava/lang/String;)Lorg/python/core/PyString; ? ?
? ? None ? scheme ? LifoQueue ? QueueCls ? org/python/core/PyFunction ? f_globals Lorg/python/core/PyObject; ? ? ?
__init__$2 getlocal (I)Lorg/python/core/PyObject; ? ?
? __not__ ()Lorg/python/core/PyObject; ? ?
? ? getglobal ? ?
? No host specified. ? org/python/core/Py ?
makeException 9(Lorg/python/core/PyObject;)Lorg/python/core/PyException; ? ?
? ?
_ipv6_host ? lower ? host ? __setattr__ ?
? ? _proxy_host ? port ? f_lasti I ? ? ? ? ? ? ? urllib3/connectionpool$py ? Lorg/python/core/PyCode; ? ? ? ? j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V ? ?
? ? __init__ EmptyObjects [Lorg/python/core/PyObject; ? __str__$3 %s(host=%r, port=%r) org/python/core/PyTuple
type ([Lorg/python/core/PyObject;)V ?
_mod 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject;
? ? ? __str__ __enter__$4 ? ? __enter__
__exit__$5 close False! ? ?# __exit__% close$6 D
Close all pooled connections and disable the pool.
(' ? ?* getf_locals, ?
- ? ? ?/ makeClass a(Ljava/lang/String;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;)Lorg/python/core/PyObject;12
?3 java/util/Arrays5 fill (([Ljava/lang/Object;Ljava/lang/Object;)V78
69 set; org/python/core/PyList= EAGAIN? EWOULDBLOCKA
> _blocking_errnosD HTTPConnectionPoolF HTTPConnectionPool$7 N
Thread-safe connection pool for one host.
:param host:
Host used for this HTTP Connection (e.g. "localhost"), passed into
:class:`httplib.HTTPConnection`.
:param port:
Port used for this HTTP Connection (None is equivalent to 80), passed
into :class:`httplib.HTTPConnection`.
:param strict:
Causes BadStatusLine to be raised if the status line can't be parsed
as a valid HTTP/1.0 or 1.1 status line, passed into
:class:`httplib.HTTPConnection`.
.. note::
Only works in Python 2. This parameter is ignored in Python 3.
:param timeout:
Socket timeout in seconds for each individual connection. This can
be a float or integer, which sets the timeout for the HTTP request,
or an instance of :class:`urllib3.util.Timeout` which gives you more
fine-grained control over request timeouts. After the constructor has
been parsed, this is always a `urllib3.util.Timeout` object.
:param maxsize:
Number of connections to save that can be reused. More than 1 is useful
in multithreaded situations. If ``block`` is set to False, more
connections will be created but they will not be saved once they've
been used.
:param block:
If set to True, no more than ``maxsize`` connections will be used at
a time. When no free connections are available, the call will block
until a connection has been released. This is a useful side effect for
particular multithreaded situations where one does not want to use more
than maxsize connections per host to prevent flooding.
:param headers:
Headers to include with all requests, unless other headers are given
explicitly.
:param retries:
Retry configuration to use by default with requests in this pool.
:param _proxy:
Parsed proxy URL, should not be used directly, instead, see
:class:`urllib3.connectionpool.ProxyManager`"
:param _proxy_headers:
A dictionary with proxy headers, should not be used directly,
instead, see :class:`urllib3.connectionpool.ProxyManager`"
:param \**conn_kw:
Additional parameters are used to create fresh :class:`urllib3.connection.HTTPConnection`,
:class:`urllib3.connection.HTTPSConnection` instances.
I httpK
ConnectionClsM ResponseClsO DEFAULT_TIMEOUTQ
newInteger (I)Lorg/python/core/PyInteger;ST
?U
__init__$8 ?(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ?X
?Y m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ?[
?\ strict^
isinstance`
from_floatb (ILorg/python/core/PyObject;)V d
e _isg
?h DEFAULTj retriesl pooln blockp proxyr org/python/core/PyDictionaryt
u
proxy_headersw __iter__y ?
?z put| __iternext__~ ?
? num_connections? num_requests? conn_kw?
setdefault? socket_options?W ? ?? _new_conn$9 9
Return a fresh :class:`HTTPConnection`.
? _iadd?
?? debug? %Starting new HTTP connection (%d): %s? connect_timeout?
_callextra ~([Lorg/python/core/PyObject;[Ljava/lang/String;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;??
??? ? ?? _new_conn? _get_conn$10?
Get a connection. Will return a pooled connection if one is available.
If no connections are available and :prop:`.block` is ``False``, then a
fresh connection is returned.
:param timeout:
Seconds to wait before giving up and raising
:class:`urllib3.exceptions.EmptyPoolError` if the pool is empty and
:prop:`.block` is ``True``.
? get? g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject; ??
?? setException M(Ljava/lang/Throwable;Lorg/python/core/PyFrame;)Lorg/python/core/PyException;??
?? AttributeError? org/python/core/PyException? match (Lorg/python/core/PyObject;)Z??
?? Pool is closed.? Empty? >Pool reached maximum size and no more connections are allowed.? java/lang/Throwable? Resetting dropped connection: %s? getattr? auto_open? _eq?
??? ? ?? _get_conn? _put_conn$11?
Put a connection back into the pool.
:param conn:
Connection object for the current host and port as returned by
:meth:`._new_conn` or :meth:`._get_conn`.
If the pool is already full, the connection is closed and discarded
because we exceeded maxsize. If connections are discarded frequently,
then maxsize should be increased.
If the pool is closed, then the connection will be closed and discarded.
? Full? warning? 2Connection pool is full, discarding connection: %s?? ? ?? _put_conn? _validate_conn$12 U
Called right before a request is made, after the socket is created.
?? ? ?? _validate_conn? _prepare_proxy$13? ? ?? _prepare_proxy? _get_timeout$14 < Helper that always returns a :class:`urllib3.util.Timeout` ? clone?? ? ?? _get_timeout? _raise_timeout$15 AIs the error actually a timeout? Will raise a ReadTimeout or pass? !Read timed out. (read timeout=%s)? hasattr? _in?
?? timed out? str? did not complete (read)?? ? ?? _raise_timeout? _make_request$16
Perform a request on a given urllib connection object taken from our
pool.
:param conn:
a connection from one of our connection pools
:param timeout:
Socket timeout in seconds for the request. This can be a
float or integer, which will set the same timeout value for
the socket connect and the socket read, or an instance of
:class:`urllib3.util.Timeout`, which gives you more fine-grained
control over your timeouts.
start_connect value ? ? err url
timeout_value ()Lorg/python/core/PyException; ?
? request_chunked read_timeout sock
settimeout getdefaulttimeout getresponse True buffering TypeError! Exception#
raise_from%
_http_vsn_str' HTTP/?) %s://%s:%s "%s %s %s" %s %s+ status- length/ T(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ?1
?2 msg4 $Failed to parse headers (url=%s): %s6
_absolute_url8 exc_info: ? ?<
_make_request> _absolute_url$17 pathA@ ? ?C close$18 unpackSequence 8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject;FG
?HE ? ?J is_same_host$19 j
Check if the given ``url`` is a member of the same host as this
connection pool.
M
startswithO /QL ? ?S is_same_hostU
urlopen$20?
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.
.. note::
More commonly, it's appropriate to use a convenience method provided
by :class:`.RequestMethods`, such as :meth:`request`.
.. note::
`release_conn` will only behave as expected if
`preload_content=False` because we want to make
`preload_content=False` the default behaviour someday soon without
breaking backwards compatibility.
:param method:
HTTP request method (such as GET, POST, PUT, etc.)
:param body:
Data to send in the request body (useful for creating
POST requests, see HTTPConnectionPool.post_url for
more convenience).
:param headers:
Dictionary of custom headers to send, such as User-Agent,
If-None-Match, etc. If None, pool headers are used. If provided,
these headers completely replace any pool-specific headers.
:param retries:
Configure the number of retries to allow before raising a
:class:`~urllib3.exceptions.MaxRetryError` exception.
Pass ``None`` to retry until you receive a response. Pass a
:class:`~urllib3.util.retry.Retry` object for fine-grained control
over different types of retries.
Pass an integer number to retry connection errors that many times,
but no other types of errors. Pass zero to never retry.
If ``False``, then retries are disabled and any exception is raised
immediately. Also, instead of raising a MaxRetryError on redirects,
the redirect response will be returned.
:type retries: :class:`~urllib3.util.retry.Retry`, False, or an int.
:param redirect:
If True, automatically handle redirects (status codes 301, 302,
303, 307, 308). Each redirect counts as a retry. Disabling retries
will disable redirect, too.
:param assert_same_host:
If ``True``, will make sure that the host of the pool requests is
consistent else will raise HostChangedError. When False, you can
use the pool on an HTTP proxy and request foreign hosts.
:param timeout:
If specified, overrides the default timeout for this one
request. It may be a float (in seconds) or an instance of
:class:`urllib3.util.Timeout`.
:param pool_timeout:
If set and the pool is set to block=True, then this method will
block for ``pool_timeout`` seconds and raise EmptyPoolError if no
connection is available within the time period.
:param release_conn:
If False, then the urlopen call will not release the connection
back into the pool once a response is received (but will release if
you read the entire contents of the response such as when
`preload_content=True`). This is useful if you're not preloading
the response's content immediately. You will need to call
``r.release_conn()`` on the response ``r`` to return the connection
back into the pool. If None, it takes the value of
``response_kw.get('preload_content', True)``.
:param chunked:
If True, urllib3 will send the body using chunked transfer
encoding. Otherwise, urllib3 will send the body using the standard
content-length form. Defaults to False.
:param int body_pos:
Position to seek to in file-like body in the event of a retry or
redirect. Typically this won't need to be set because urllib3 will
auto-populate the value when needed.
:param \**response_kw:
Additional parameters are passed to
:meth:`urllib3.response.HTTPResponse.from_httplib`
X headersZ from_int\ redirect^ default` preload_contentb copyd updatef _isnoth
?i bodyk chunkedm request_methodo __setitem__ 7(Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Vqr
?s from_httplibu "No pool connections are available.w Cannot connect to proxy.y Connection aborted.{ increment} __getitem__
?? _pool? _stacktrace? sleep? addTraceback 1(Ljava/lang/Throwable;Lorg/python/core/PyFrame;)V??
?? 1Retrying (%r) after connection broken by '%r': %s? ?(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ??
?? urlopen? pool_timeout? release_conn? body_pos? drain_and_release_conn$21 read?? ? ?? get_redirect_location? GET? raise_on_redirect? sleep_for_retry? Redirecting %s -> %s? assert_same_host? bool? getheader? Retry-After? is_retry? raise_on_status? Retry: %s?W ? ??H ? ?? HTTPSConnectionPool? HTTPSConnectionPool$22?
Same as :class:`.HTTPConnectionPool`, but HTTPS.
When Python is compiled with the :mod:`ssl` module, then
:class:`.VerifiedHTTPSConnection` is used, which *can* verify certificates,
instead of :class:`.HTTPSConnection`.
:class:`.VerifiedHTTPSConnection` 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``, and ``ssl_version`` 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.
? https? __init__$23
CERT_REQUIRED? key_file? cert_file? cert_reqs? ca_certs? ca_cert_dir? ssl_version? assert_hostname? assert_fingerprint?? ? ?? _prepare_conn$24 ?
Prepare the ``connection`` for :meth:`urllib3.util.ssl_wrap_socket`
and establish the tunnel if proxy is used.
? set_cert?? ? ??
_prepare_conn? _prepare_proxy$25 ?
Establish tunnel connection early, because otherwise httplib
would improperly set Host: header to proxy's IP:port.
?
set_tunnel? _set_tunnel? version_info? _le?
?? connect?? ? ?? _new_conn$26 B
Return a fresh :class:`httplib.HTTPSConnection`.
? &Starting new HTTPS connection (%d): %s? CCan't connect to HTTPS URL because the SSL module is not available.?? ? ?? _validate_conn$27 super? is_verified? warn? ?Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings?? ? ?? ? ? connection_from_url$28?
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', '/')
? ? connection_from_url
_ipv6_host$29 '
Process IPv6 address literals
[ endswith ] replace %25 % strip [] ? ? (Ljava/lang/String;)V org/python/core/PyFunctionTable" ()V ?$
#% self Lurllib3/connectionpool$py;'( ?) + newCode ?(I[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZLorg/python/core/PyFunctionTable;I[Ljava/lang/String;[Ljava/lang/String;II)Lorg/python/core/PyCode;-.
?/ ? ?1' exc_type4 exc_val6 exc_tb8 maxsize: _proxy< _proxy_headers> _@ connB methodD httplib_request_kwF timeout_objH eJ httplib_responseL http_versionN hpeP old_poolR response_kwT release_this_connV
clean_exitX is_new_proxy_connZ
response_conn\ drain_and_release_conn^ redirect_location` has_retry_afterb actual_hostd actual_portf kwh getMain ()Lorg/python/core/PyCode; main ([Ljava/lang/String;)V ? ?!
?ojk
?q org/python/core/CodeLoaders createSimpleBootstrap 9(Lorg/python/core/PyCode;)Lorg/python/core/CodeBootstrap;uv
tw runMain 5(Lorg/python/core/CodeBootstrap;[Ljava/lang/String;)Vyz
?{ getCodeBootstrap !()Lorg/python/core/CodeBootstrap; #org/python/core/PyRunnableBootstrap )getFilenameConstructorReflectionBootstrap 2(Ljava/lang/Class;)Lorg/python/core/CodeBootstrap;??
??
call_function S(ILorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;
?? ?
?? ?
??
??
??
??'
??H
??W
???
???
???
???
???
???
???
??
??@
??E
??L
??W
???
???
???
???
???
???
???
??
??
?? org/python/core/PyRunnable? Lorg/python/compiler/APIVersion; % Lorg/python/compiler/MTime; `9?? Lorg/python/compiler/Filename; `/home/trustin/Workspaces/sphinx-maven-plugin/target/update-sphinx/dist/urllib3/connectionpool.py org/python/core/ThreadState? [Ljava/lang/String;? java/lang/Object? [Ljava/lang/Object;? Code LineNumberTable StackMap
SourceFile RuntimeVisibleAnnotations ! ?# ? '( ? ? ? ? ? ? ? ? ' ? H ? W ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? @ ? E ? L ? W ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # ?
b+?
? N-S-+? N-2:+? :+? +? N+-? N+? +? N+ -? N+? "+? N+"-? N+? $+? N+$-? N+? &? N-(S-*S-+? N-2:+,? :-2:+.? :+? &+? N+&-? N+? 0
? N-2S-4S-6S-8S-:S-S-@S-BS- DS-
FS-HS-JS-+? N-2:+2? :-2:+4? :-2:+6? :-2:+8? :-2:+:? :-2:+<? :-2:+>? :-2:+@? :-2:+B? :- 2:+D? :-
2:+F? :-2:+H? :-2:+J? :+? L? N-NS-+? N-2:+N? :+? P? N-RS-+? N-2:+R? :+? T? N-VS-+? N-2:+V? :+? X? N-ZS-\S-^S-`S-bS-dS-fS-+? N-2:+Z? :-2:+\? :-2:+^? :-2:+`? :-2:+b? :-2:+d? :-2:+f? :+#? h? N-jS-+? N-2:+j? :+$? l? N-nS-+? N-2:+n? :+&? p? N-rS-+? N-2:+r? :+'? t? N-vS-+? N-2:+v? :+(? x? N-zS-+? N-2:+z? :+)? |? N-~S-+? N-2:+~? :+*? ?? N-?S-+? N-2:+?? :++? ?? N-?S-?S-+? N-2:+?? :-2:+?? :+.? +R? ??? ?? ?? +0? ?+? ?N+?-? N? +2? +R? ??? ??? ?N+?-? N+4? + ? ??? ?,+?? ?? ?N+?-? N+6? +?? ?,? ?N+?-? N+:? ? ?N+?? ?-__S?-?0?4:+?? :-?:+_? +