kr.motd.maven.sphinx.dist.urllib3.request$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
???? 1W 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
filepost encode_multipart_formdata packages.six.moves.urllib.parse urlencode org/python/core/PyList ! org/python/core/PyObject # RequestMethods % org/python/core/PyString ' fromInterned .(Ljava/lang/String;)Lorg/python/core/PyString; ) *
( + ([Lorg/python/core/PyObject;)V - .
" / __all__ 1 object 3 getname .(Ljava/lang/String;)Lorg/python/core/PyObject; 5 6
7 RequestMethods$1
__module__ : __name__ < __doc__ >?
Convenience mixin for classes who implement a :meth:`urlopen` method, such
as :class:`~urllib3.connectionpool.HTTPConnectionPool` and
:class:`~urllib3.poolmanager.PoolManager`.
Provides behavior for making common types of HTTP request methods and
decides which type of request field encoding to use.
Specifically,
:meth:`.request_encode_url` is for sending requests whose fields are
encoded in the URL (such as GET, HEAD, DELETE).
:meth:`.request_encode_body` is for sending requests whose fields are
encoded in the *body* of the request using multipart or www-form-urlencoded
(such as for POST, PUT, PATCH).
:meth:`.request` is for making any kind of request, it will look up the
appropriate encoding format and use one of the above two methods to make
the request.
Initializer parameters:
:param headers:
Headers to include with all requests, unless other headers are given
explicitly.
@ set B DELETE D GET F HEAD H OPTIONS J __call__ S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; L M
$ N _encode_url_methods P None R org/python/core/PyFunction T f_globals Lorg/python/core/PyObject; V W X
__init__$2 getlocal (I)Lorg/python/core/PyObject; [ \
] __nonzero__ ()Z _ `
$ a org/python/core/PyDictionary c org/python/core/Py e EmptyObjects [Lorg/python/core/PyObject; g h f i
d / headers l __setattr__ n
$ o f_lasti I q r s R W f u urllib3/request$py w Lorg/python/core/PyCode; Z y x z j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V - |
U } __init__ True ? urlopen$3 NotImplemented ? getglobal ? 6
? MClasses extending RequestMethods must implement their own ``urlopen`` method. ?
makeException 9(Lorg/python/core/PyObject;)Lorg/python/core/PyException; ? ?
f ? ? y x ? urlopen ? request$4?
Make a request using :meth:`urlopen` with the appropriate encoding of
``fields`` based on the ``method`` used.
This is a convenience method that requires the least amount of manual
effort. It can be used in most situations, while still having the
option to drop down to more specific methods when necessary, such as
:meth:`request_encode_url`, :meth:`request_encode_body`,
or even the lowest level :meth:`urlopen`.
? upper ? __getattr__ ? 6
$ ? 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; L ?
$ ? (ILorg/python/core/PyObject;)V ?
? _in 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
$ ? request_encode_url ? fields ?
_callextra ~([Lorg/python/core/PyObject;[Ljava/lang/String;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
$ ? request_encode_body ? ? y x ? request ? request_encode_url$5 ?
Make a request using :meth:`urlopen` with the ``fields`` encoded in
the url. This is useful for request methods like GET, HEAD, DELETE, etc.
? _is ? ?
$ ? update ? ? ? _add ? ?
$ ? _iadd ? ?
$ ? ? y x ? request_encode_body$6?
Make a request using :meth:`urlopen` with the ``fields`` encoded in
the body. This is useful for request methods like POST, PUT, PATCH, etc.
When ``encode_multipart=True`` (default), then
:meth:`urllib3.filepost.encode_multipart_formdata` is used to encode
the payload with the appropriate content type. Otherwise
:meth:`urllib.urlencode` is used with the
'application/x-www-form-urlencoded' content type.
Multipart encoding must be used when posting files, and it's reasonably
safe to use it in other times too. However, it may break request
signing, such as with OAuth.
Supports an optional ``fields`` parameter of key/value strings AND
key/filetuple. A filetuple is a (filename, data, MIME type) tuple where
the MIME type is optional. For example::
fields = {
'foo': 'bar',
'fakefile': ('foofile.txt', 'contents of foofile'),
'realfile': ('barfile.txt', open('realfile').read()),
'typedfile': ('bazfile.bin', open('bazfile').read(),
'image/jpeg'),
'nonamefile': 'contents of nonamefile field',
}
When uploading a file, providing a filename (the first parameter of the
tuple) is optional but recommended to best mimick behavior of browsers.
Note that if ``headers`` are supplied, the 'Content-Type' header will
be overwritten because it depends on the dynamic random boundary string
which is used to compose the body of the request. The random boundary
string can be explicitly set with the ``multipart_boundary`` parameter.
? body ? TypeError ? Frequest got values for both 'fields' and 'body', can only specify one. ? boundary ? g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject; L ?
$ ? unpackSequence 8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject; ? ?
f ? org/python/core/PyTuple ? !application/x-www-form-urlencoded ?
? / __setitem__ 7(Lorg/python/core/PyObject;Lorg/python/core/PyObject;)V ? ?
$ ? Content-Type ? __getitem__ ? ?
$ ? ? y x ? getf_locals ()Lorg/python/core/PyObject; ? ?
? 9 y x ? makeClass a(Ljava/lang/String;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;)Lorg/python/core/PyObject; ? ?
f ? java/util/Arrays ? fill (([Ljava/lang/Object;Ljava/lang/Object;)V ? ?
? ? (Ljava/lang/String;)V org/python/core/PyFunctionTable ? ()V - ?
? ? self Lurllib3/request$py; ? ? x ? 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;
f y x ? method
url encode_multipart multipart_boundary kw
urlopen_kw extra_kw content_type getMain ()Lorg/python/core/PyCode; main ([Ljava/lang/String;)V w - ?
x
x! org/python/core/CodeLoader# createSimpleBootstrap 9(Lorg/python/core/PyCode;)Lorg/python/core/CodeBootstrap;%&
$' runMain 5(Lorg/python/core/CodeBootstrap;[Ljava/lang/String;)V)*
f+ getCodeBootstrap !()Lorg/python/core/CodeBootstrap; #org/python/core/PyRunnableBootstrap/ )getFilenameConstructorReflectionBootstrap 2(Ljava/lang/Class;)Lorg/python/core/CodeBootstrap;12
03
call_function S(ILorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;
x7 9
x9 Z
x; ?
x= ?
x? ?
xA ?
xC org/python/core/PyRunnableE Lorg/python/compiler/APIVersion; value % Lorg/python/compiler/MTime; `9?? Lorg/python/compiler/Filename; Y/home/trustin/Workspaces/sphinx-maven-plugin/target/update-sphinx/dist/urllib3/request.py org/python/core/ThreadStateO h Code LineNumberTable StackMap
SourceFile RuntimeVisibleAnnotations ! x ? F ? ? y 9 y Z y ? y ? y ? y ? y R ? ?+?
? N-S-+? N-2:+? :+? ? N-S-+? N-2:+? :+? ? N- S-+? N-2:+ ? :+? ? "Y? $Y&? ,S? 0N+2-? N+
? ? $N+4? 8-__S&-? ? ?:+&? :-? ?+? t? v? S
9 R ? ?+;+=? 8? +?A? ,? +%? A? ,W+'? +C? 8,? "Y? $YE? ,SYG? ,SYI? ,SYK? ,S? 0? ON+Q-? N+)? ? $N+S? 8-__S? UY+? Y-? {? ~N+?-? N+,? ? $N+S? 8-__S+S? 8-__S+?? 8-__S+S? 8-__S? UY+? Y-? ?? ~N+?-? N+2? ? $N+S? 8-__S+S? 8-__S? UY+? Y-? ??? ,? ~N+?-? N+H? ? $N+S? 8-__S+S? 8-__S? UY+? Y-? ??? ,? ~N+?-? N+Y? ? $N+S? 8-__S+S? 8-__S+?? 8-__S+S? 8-__S? UY+? Y-? ?Ǹ ,? ~N+?-? N+? ? S % ' ) , 2 H Y Z R f 4+*? +? ^Y? b? W? dY? j? kN+? ^m-? pN+? t? v? S *T x P $ ? R 1 +/? +?? ?,?? ,? O? ?? S / ? R a !+