kr.motd.maven.sphinx.dist.urllib3.contrib.appengine$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
???? 1b f$0 R(Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; __doc__ C
This module provides a pool manager that uses Google App Engine's
`URLFetch Service `_.
Example usage::
from urllib3 import PoolManager
from urllib3.contrib.appengine import AppEngineManager, is_appengine_sandbox
if is_appengine_sandbox():
# AppEngineManager uses AppEngine's URLFetch API behind the scenes
http = AppEngineManager()
else:
# PoolManager uses a socket-level API behind the scenes
http = PoolManager()
r = http.request('GET', 'https://google.com/')
There are `limitations `_ to the URLFetch service and it may not be
the best choice for your application. There are three options for using
urllib3 on Google App Engine:
1. You can use :class:`AppEngineManager` with URLFetch. URLFetch is
cost-effective in many circumstances as long as your usage is within the
limitations.
2. You can use a normal :class:`~urllib3.PoolManager` by enabling sockets.
Sockets also have `limitations and restrictions
`_ and have a lower free quota than URLFetch.
To use sockets, be sure to specify the following in your ``app.yaml``::
env_variables:
GAE_USE_SOCKETS_HTTPLIB : 'true'
3. If you are using `App Engine Flexible
`_, you can use the standard
:class:`PoolManager` without any configuration or special environment variables.
org/python/core/PyString fromInterned .(Ljava/lang/String;)Lorg/python/core/PyString;
org/python/core/PyFrame
setglobal /(Ljava/lang/String;Lorg/python/core/PyObject;)V
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 #
$ logging & importOne H(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject; ( )
* os , warnings . packages.six.moves.urllib.parse 0 urljoin 2
exceptions 4 HTTPError 6 HTTPWarning 8
MaxRetryError :
ProtocolError < TimeoutError > SSLError @ packages.six B BytesIO D request F RequestMethods H response J HTTPResponse L util.timeout N Timeout P
util.retry R Retry T google.appengine.api V urlfetch X org/python/core/Py Z setException M(Ljava/lang/Throwable;Lorg/python/core/PyFrame;)Lorg/python/core/PyException; \ ]
[ ^ ImportError ` getname .(Ljava/lang/String;)Lorg/python/core/PyObject; b c
d org/python/core/PyException f match (Lorg/python/core/PyObject;)Z h i
g j None l java/lang/Throwable n getLogger p org/python/core/PyObject r __getattr__ t c
s u __name__ w __call__ S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; y z
s { log } AppEnginePlatformWarning AppEnginePlatformWarning$1
__module__ ? getf_locals ()Lorg/python/core/PyObject; ? ?
? urllib3/contrib/appengine$py ? Lorg/python/core/PyCode; ? ? ? ? makeClass a(Ljava/lang/String;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;)Lorg/python/core/PyObject; ? ?
[ ? java/util/Arrays ? fill (([Ljava/lang/Object;Ljava/lang/Object;)V ? ?
? ? AppEnginePlatformError ? AppEnginePlatformError$2 ? ? ? ? AppEngineManager ? AppEngineManager$3
Connection manager for Google App Engine sandbox applications.
This manager uses the URLFetch service directly instead of using the
emulated httplib, and is subject to URLFetch limitations as described in
the App Engine documentation `here
`_.
Notably it will raise an :class:`AppEnginePlatformError` if:
* URLFetch is not available.
* If you attempt to use this on App Engine Flexible, as full socket
support is available.
* If a request size is more than 10 megabytes.
* If a response size is more than 32 megabtyes.
* If you use an unsupported request method such as OPTIONS.
Beyond those cases, it will raise normal urllib3 errors.
? True ? org/python/core/PyFunction ? f_globals Lorg/python/core/PyObject; ? ? ?
__init__$4 getglobal ? c
? __not__ ? ?
s ? __nonzero__ ()Z ? ?
s ? .URLFetch is not available in this environment. ?
makeException 9(Lorg/python/core/PyObject;)Lorg/python/core/PyException; ? ?
[ ? is_prod_appengine_mvms ? 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; y ?
s ? ?Use normal urllib3.PoolManager instead of AppEngineManageron Managed VMs, as using URLFetch is not necessary in this environment. ? warn ? ?urllib3 is using URLFetch on Google App Engine sandbox instead of sockets. To use sockets directly instead of URLFetch see https://urllib3.readthedocs.io/en/latest/reference/urllib3.contrib.html. ? m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; y ?
s ? __init__ ? getlocal (I)Lorg/python/core/PyObject; ? ?
? validate_certificate ? __setattr__ ?
s ? urlfetch_retries ? DEFAULT ? retries ? f_lasti I ? ? ? l ? [ ? ? ? ? ? j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V ? ?
? ? EmptyObjects [Lorg/python/core/PyObject; ? ? [ ? __enter__$5 ? ? ? ? __enter__ ?
__exit__$6 False ? ? ? ? ? __exit__ ? DEFAULT_TIMEOUT ? urlopen$7 _get_retries ? (ILorg/python/core/PyObject;)V # ?
? redirect ?
newInteger (I)Lorg/python/core/PyInteger; ?
[ _ne 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject;
s total fetch org/python/core/PyDictionary ([Lorg/python/core/PyObject;)V ?
_get_absolute_timeout payload method headers allow_truncated follow_redirects deadline g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject; y
s DeadlineExceededError! value# ? g$ InvalidURLError& too large( str* _in,
s- OURLFetch request too large, URLFetch only supports requests up to 10mb in size./
DownloadError1 Too many redirects3 reason5 ResponseTooLargeError7 PURLFetch response too large, URLFetch only supportsresponses up to 32mb in size.9 SSLCertificateError; InvalidMethodError= $URLFetch does not support method: %s? _modA
sB #_urlfetch_response_to_http_responseD
_callextra ~([Lorg/python/core/PyObject;[Ljava/lang/String;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;FG
sH get_redirect_locationJ raise_on_redirectL too many redirectsN ?(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; yP
sQ statusS _eqU
sV GETX incrementZ _pool\ sleep_for_retry^ debug` Redirecting %s -> %sb urlopend timeoutf boolh getheaderj Retry-Afterl is_retryn Retry: %sp sleepr bodyt ? ? ?v %_urlfetch_response_to_http_response$8 is_prod_appenginey get{ content-encoding} deflate __delitem__ (Lorg/python/core/PyObject;)V??
s? transfer-encoding? chunked? split? ,? remove? join? __setitem__ 7(Lorg/python/core/PyObject;Lorg/python/core/PyObject;)V??
s? content? status_code?x ? ?? _get_absolute_timeout$9 _is?
s?
isinstance? _read? _isnot?
s? _connect? dURLFetch does not support granular timeout settings, reverting to total or default URLFetch timeout.?? ? ?? _get_retries$10 from_int? default? connect? read? hURLFetch only supports total retries and does not recognize connect, read, or redirect retry parameters.?? ? ?? ? ? ?? is_appengine$11 is_local_appengine?? ? ?? is_appengine? is_appengine_sandbox$12? ? ?? is_appengine_sandbox? is_local_appengine$13 APPENGINE_RUNTIME? environ? Development/? SERVER_SOFTWARE? __getitem__?
s?? ? ?? is_prod_appengine$14 Google App Engine/?? ? ?? is_prod_appengine_mvms$15 GAE_VM? true?? ? ?? (Ljava/lang/String;)V org/python/core/PyFunctionTable? ()V ??
?? self Lurllib3/contrib/appengine$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;??
[? ? ??? exc_type? exc_val? exc_tb? url? response_kw? e?
http_response redirect_location redirect_url has_retry_after
urlfetch_resp content_encoding
transfer_encoding encodings getMain ()Lorg/python/core/PyCode; main ([Ljava/lang/String;)V ? ??
?
? org/python/core/CodeLoader createSimpleBootstrap 9(Lorg/python/core/PyCode;)Lorg/python/core/CodeBootstrap;
runMain 5(Lorg/python/core/CodeBootstrap;[Ljava/lang/String;)V
[! 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;
?- ?
?/ ?
?1 ?
?3 ?
?5 ?
?7 ?
?9 ?
?;x
?=?
???
?A?
?C?
?E?
?G?
?I?
?K org/python/core/PyRunnableM Lorg/python/compiler/APIVersion; % Lorg/python/compiler/MTime; `9?? Lorg/python/compiler/Filename; c/home/trustin/Workspaces/sphinx-maven-plugin/target/update-sphinx/dist/urllib3/contrib/appengine.py org/python/core/ThreadStateV ? java/lang/ObjectY [Ljava/lang/String;[ Code LineNumberTable StackMap
SourceFile RuntimeVisibleAnnotations ! ?? N ?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? x ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ] ? ?+? ? +'? ? W+)? ? N-S-+? "N-2:+? %:+*? '+? +N+'-? %N++? -+? +N+--? %N+,? /+? +N+/-? %N+-? 1? N-3S-+? "N-2:+3? %:+/? 5? N-7S-9S-;S-=S-?S-AS-+? "N-2:+7? %:-2:+9? %:-2:+;? %:-2:+=? %:-2:+?? %:-2:+A? %:+8? C? N-ES-+? "N-2:+E? %:+9? G? N-IS-+? "N-2:+I? %:+:? K? N-MS-+? "N-2:+M? %:+;? O? N-QS-+? "N-2:+Q? %:+