kr.motd.maven.sphinx.dist.requests.models$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; __doc__ `
requests.models
~~~~~~~~~~~~~~~
This module contains the primary objects that power Requests.
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
collections org/python/core/imp importOne H(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject;
setlocal
datetime " sys $ encodings.idna & encodings ( urllib3.fields * java/lang/String , RequestField .
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject; 0 1
2 urllib3.filepost 4 encode_multipart_formdata 6 urllib3.util 8 parse_url : urllib3.exceptions < DecodeError > ReadTimeoutError @
ProtocolError B LocationParseError D io F UnsupportedOperation H hooks J
default_hooks L
structures N CaseInsensitiveDict P auth R
HTTPBasicAuth T cookies V cookiejar_from_dict X get_cookie_header Z _copy_cookie_jar \
exceptions ^ HTTPError `
MissingSchema b
InvalidURL d ChunkedEncodingError f ContentDecodingError h ConnectionError j StreamConsumedError l _internal_utils n to_native_string p unicode_is_ascii r utils t guess_filename v get_auth_from_url x requote_uri z stream_decode_response_unicode | to_key_val_list ~ parse_header_links ? iter_slices ? guess_json_utf ? super_len ? check_header_validity ? compat ? cookielib ?
urlunparse ? urlsplit ? urlencode ? str ? bytes ? is_py2 ? chardet ? builtin_str ?
basestring ? json ? complexjson ? status_codes ? codes ? org/python/core/PyTuple ? org/python/core/PyObject ? getname .(Ljava/lang/String;)Lorg/python/core/PyObject; ? ?
? moved ? __getattr__ ? ?
? ? found ? other ? temporary_redirect ? permanent_redirect ? ([Lorg/python/core/PyObject;)V ? ?
? ? REDIRECT_STATI ? org/python/core/Py ?
newInteger (I)Lorg/python/core/PyInteger; ? ?
? ? DEFAULT_REDIRECT_LIMIT ? _mul 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
? ? CONTENT_CHUNK_SIZE ? ITER_CHUNK_SIZE ? object ? RequestEncodingMixin ? RequestEncodingMixin$1
__module__ ? __name__ ? EmptyObjects [Lorg/python/core/PyObject; ? ? ? ? org/python/core/PyFunction ? f_globals Lorg/python/core/PyObject; ? ? ?
path_url$2 Build the path URL to use. ? org/python/core/PyList ?
? ? (ILorg/python/core/PyObject;)V ?
? getglobal ? ?
? getlocal (I)Lorg/python/core/PyObject; ? ?
? url ? __call__ S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
? ? path ? __not__ ()Lorg/python/core/PyObject; ? ?
? __nonzero__ ()Z
? / append query
? join f_lasti I requests/models$py Lorg/python/core/PyCode; ? j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V ?
? property path_url _encode_params$3 ?Encode parameters in a piece of data.
Will successfully encode parameters when passed as a dict or a list of
2-tuples. Order is retained if data is a list of 2-tuples but arbitrary
if parameters are supplied as a dict.
#
isinstance% m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ?'
?( hasattr* read, __iter__.. ?
?0 unpackSequence 8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject;23
?4 None6 _isnot8 ?
?9 encode; utf-8= __iternext__? ?
?@ TrueB doseqD g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject; ?F
?G" I staticmethodK _encode_paramsM _encode_files$4?Build the body for a multipart/form-data request.
Will successfully encode files when passed as a dict or a list of
tuples. Order is retained if data is a list of tuples but arbitrary
if parameters are supplied as a dict.
The tuples may be 2-tuples (filename, fileobj), 3-tuples (filename, fileobj, contentype)
or 4-tuples (filename, fileobj, contentype, custom_headers).
P
ValueErrorR Files must be provided.T
makeException 9(Lorg/python/core/PyObject;)Lorg/python/core/PyException;VW
?X Data must not be a string.Z org/python/core/PyDictionary\
] ? decode_ tuplea listc lene _eqg ?
?h bytearrayj 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; ?l
?m nameo dataq filenames headersu make_multipartw content_typeyO {
_encode_files} getf_locals ?
? ? ? 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??
?? RequestHooksMixin? RequestHooksMixin$5 register_hook$6 Properly register a hook.? _notin? ?
?? 1Unsupported event specified, with event name "%s"? _mod? ?
?? Callable? __getitem__? ?
?? extend? f$7 java/lang/Object?
f_savedlocals [Ljava/lang/Object;?? ? getGeneratorInput ()Ljava/lang/Object;??
? org/python/core/PyException? java/lang/Throwable?6 ? ??? ?? ?
register_hook? deregister_hook$8 iDeregister a previously registered hook.
Returns True if the hook existed, False if not.
? remove? setException M(Ljava/lang/Throwable;Lorg/python/core/PyFrame;)Lorg/python/core/PyException;??
?? match (Lorg/python/core/PyObject;)Z??
?? False?? ? deregister_hook?? ? Request? Request$9?A user-created :class:`Request ` object.
Used to prepare a :class:`PreparedRequest `, which is sent to the server.
:param method: HTTP method to use.
:param url: URL to send.
:param headers: dictionary of headers to send.
:param files: dictionary of {filename: fileobject} files to multipart upload.
:param data: the body to attach to the request. If a dictionary is provided, form-encoding will take place.
:param json: json for the body to attach to the request (if files or data is not specified).
:param params: dictionary of URL parameters to append to the URL.
:param auth: Auth handler or (user, pass) tuple.
:param cookies: dictionary or CookieJar of cookies to attach to this request.
:param hooks: dictionary of callback hooks, for internal usage.
Usage::
>>> import requests
>>> req = requests.Request('GET', 'http://httpbin.org/get')
>>> req.prepare()
? __init__$10 _is? ?
?? __setattr__?
?? items? event? hook? method? files? params?? ? __init__? __repr__$11 ?? ? __repr__?
prepare$12 XConstructs a :class:`PreparedRequest ` for transmission and returns it.? PreparedRequest? prepare?? ?? ? PreparedRequest$13?The fully mutable :class:`PreparedRequest ` object,
containing the exact bytes that will be sent to the server.
Generated from either a :class:`Request ` object or manually.
Usage::
>>> import requests
>>> req = requests.Request('GET', 'http://httpbin.org/get')
>>> r = req.prepare()
>>> s = requests.Session()
>>> s.send(r)
? __init__$14 _cookies body _body_position
prepare$15 6Prepares the entire request with the given parameters.
prepare_method prepare_url prepare_headers prepare_cookies prepare_body ?(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ?
? prepare_auth
prepare_hooks __repr__$16 " copy$17 copy%$ ' prepare_method$18 Prepares the given HTTP method.* upper,) . _get_idna_encoded_host$19 idna1 uts463 IDNAError5 UnicodeError70 9 _get_idna_encoded_host; prepare_url$20 Prepares the given HTTP URL.> utf8@ unicodeB lstripD :F _inH ?
?I lowerK
startswithM httpO valueQ ? ?R argsT
_callextra ~([Lorg/python/core/PyObject;[Ljava/lang/String;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;VW
?X DInvalid URL {0!r}: No schema supplied. Perhaps you meant http://{0}?Z format\ Invalid URL %r: No host supplied^ URL has an invalid label.` *b org/python/core/PyUnicoded /(Ljava/lang/String;)Lorg/python/core/PyUnicode; f
eg @i _iaddk ?
?l _addn ?
?o %s&%sq= s prepare_headers$21 Prepares the given HTTP headers.v __setitem__ 7(Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Vxy
?zu | prepare_body$22 "Prepares the given HTTP body data. application/json? dumps? all? Mapping? TypeError? AttributeError? getattr? tell? IOError? OSError? NotImplementedError? 1Streamed bodies and files are mutually exclusive.? Content-Length? chunked? Transfer-Encoding? !application/x-www-form-urlencoded? prepare_content_length? content-type? Content-Type?~ ? prepare_content_length$23 >Prepare Content-Length header based on request method and body? GET? HEAD? get? 0?? ? prepare_auth$24 "Prepares the given HTTP auth data.? any? __dict__? update?? ? prepare_cookies$25Prepares the given HTTP cookie data.
This function eventually generates a ``Cookie`` header from the
given cookies using cookielib. Due to cookielib's design, the header
will not be regenerated if it already exists, meaning this function
can only be called once for the life of the
:class:`PreparedRequest ` object. Any subsequent calls
to ``prepare_cookies`` will have no actual effect, unless the "Cookie"
header is removed beforehand.
? CookieJar? Cookie?? ? prepare_hooks$26 Prepares the given hooks.?? ?? ? Response? Response$27 hThe :class:`Response ` object, which contains a
server's response to an HTTP request.
? _content? status_code? history? encoding? reason? elapsed? request? __attrs__? __init__$28 _content_consumed? _next? raw? timedelta?? ? __enter__$29? ? __enter__? __exit__$30 close?? ? __exit__? __getstate__$31 to_cell (II)V??
getderef ?
content dict f$32
getclosure ?
?(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;[Lorg/python/core/PyObject;)V ?
?? __getstate__ __setstate__$33 setattr __setstate__ __repr__$34 __bool__$35kReturns True if :attr:`status_code` is less than 400.
This attribute checks if the status code of the response is between
400 and 600 to see if there was a client error or a server error. If
the status code, is between 200 and 400, this will return True. This
is **not** a check to see if the response code is ``200 OK``.
# ok%" ' __bool__) __nonzero__$36+ , __iter__$37 ,Allows you to use a response as an iterator.0 iter_content2/ 4 ok$38 raise_for_status76 9 is_redirect$39 ?True if this Response is a well-formed HTTP redirect that could have
been processed automatically (by :meth:`Session.resolve_redirects`).
< location>; @ is_redirectB is_permanent_redirect$40 @True if this Response one of the permanent versions of redirect.E moved_permanentlyGD I is_permanent_redirectK next$41 TReturns a PreparedRequest for the next request in a redirect chain, if there is one.NM P nextR apparent_encoding$42 7The apparent encoding, provided by the chardet library.U detectWT Y apparent_encoding[ iter_content$43?Iterates over the response data. When stream=True is set on the
request, this avoids reading the content at once into memory for
large responses. The chunk size is the number of bytes it should
read into memory. This is not necessarily the length of each item
returned as decoding can take place.
chunk_size must be of type int or None. A value of None will
function differently depending on the value of `stream`.
stream=True will read data as it arrives in whatever size the
chunks are received. If stream=False, data is returned as
a single chunk.
If decode_unicode is True, content will be decoded using the best
available encoding based on the response.
^ generate$44 streama decode_contentc` e boolg inti .chunk_size must be an int, it is instead a %s.k typem] o
iter_lines$45 ?Iterates over the response data, one line at a time. When
stream=True is set on the request, this avoids reading the
content at once into memory for large responses.
.. note:: This method is not reentrant safe.
r
chunk_sizet decode_unicodev splitx
splitlinesz pop|q ~
iter_lines?
content$46 "Content of the response, in bytes.? RuntimeError? 2The content for this response was already consumed?? ? text$47?Content of the response, in unicode.
If Response.encoding is None, encoding will be guessed using
``chardet``.
The encoding of the response content is determined based solely on HTTP
headers, following RFC 2616 to the letter. If you can take advantage of
non-HTTP knowledge to make a better guess at the encoding, you should
set ``r.encoding`` appropriately before accessing this property.
? replace? errors? LookupError?? ? text? json$48 ?Returns the json-encoded content of a response, if any.
:param \*\*kwargs: Optional arguments that ``json.loads`` takes.
:raises ValueError: If the response body does not contain valid json.
? _gt? ?
?? loads? UnicodeDecodeError?? ? links$49 8Returns the parsed header links of the response, if any.? link? rel?? ? links? raise_for_status$50 2Raises stored :class:`HTTPError`, if one occurred.?
iso-8859-1? _le? ?
?? _lt? ?
?? %s Client Error: %s for url: %s? %s Server Error: %s for url: %s? response?? ? close$51 ?Releases the connection back to the pool. Once this method has been
called the underlying ``raw`` object must not be accessed again.
*Note: Should not normally need to be called explicitly.*
? release_conn?? ?? ? (Ljava/lang/String;)V org/python/core/PyFunctionTable? ()V ??
?? self Lrequests/models$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;??
?? ?? p? result? k? vs? v?
new_fields? fields? field? val? ft? fh? fn? fp? fdata? rf? _(180_37)? _(x)? h host scheme port fragment
e error netloc
enc_params headerQ is_stream length url_auth r
cookie_header _(648_12)! attr# state% generate'
reused_chunks)
stream_chunks+ chunks- chunk/ delimiter1 pending3 lines5 line7 kwargs9 l; key= http_error_msg? getMain ()Lorg/python/core/PyCode; main ([Ljava/lang/String;)V ??
FAB
H org/python/core/CodeLoaderJ createSimpleBootstrap 9(Lorg/python/core/PyCode;)Lorg/python/core/CodeBootstrap;LM
KN runMain 5(Lorg/python/core/CodeBootstrap;[Ljava/lang/String;)VPQ
?R getCodeBootstrap !()Lorg/python/core/CodeBootstrap; #org/python/core/PyRunnableBootstrapV )getFilenameConstructorReflectionBootstrap 2(Ljava/lang/Class;)Lorg/python/core/CodeBootstrap;XY
WZ
call_function S(ILorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;
^ ?
` ?
b"
dO
f?
h?
j?
l?
n?
p?
r?
t?
v?
x
z
|
~$
?)
?0
?=
?u
?~
??
??
??
??
??
??
??
??
??
?
?
?
?"
?+
?/
?6
?;
?D
?M
?T
?]
?`
?q
??
??
??
??
??
??
? org/python/core/PyRunnable? Lorg/python/compiler/APIVersion; % Lorg/python/compiler/MTime; `9?? Lorg/python/compiler/Filename; Y/home/trustin/Workspaces/sphinx-maven-plugin/target/update-sphinx/dist/requests/models.py org/python/core/ThreadState? ?? [Ljava/lang/String;? Code LineNumberTable StackMap
SourceFile RuntimeVisibleAnnotations !? ? 5 ?? ? ? " O ? ? ? ? ? ? ? ? ? $ ) 0 = u ~ ? ? ? ? ? ? ? ? ? " + / 6 ; D M T ] ` q ? ? ? ? ? ? 9 ? ? &+? ? +? ? W+
? +? N+-? !N+? #+? N+#-? !N+? %+? N+%-? !N+? '+? N+)-? !N+? +? -N-/S-+? 3N-2:+/? !:+? 5? -N-7S-+? 3N-2:+7? !:+? 9? -N-;S-+? 3N-2:+;? !:+? =? -N-?S-AS-CS-ES-+? 3N-2:+?? !:-2:+A? !:-2:+C? !:-2:+E? !:+? G? -N-IS-+? 3N-2:+I? !:+? K? -N-MS-+? 3N-2:+M? !:+? O? -N-QS-+? 3N-2:+Q? !:+? S? -N-US-+? 3N-2:+U? !:+? W? -N-YS-[S-]S-+? 3N-2:+Y? !:-2:+[? !:-2:+]? !:+? _? -N-aS-cS-eS-gS-iS-kS-mS-+? 3N-2:+a? !:-2:+c? !:-2:+e? !:-2:+g? !:-2:+i? !:-2:+k? !:-2:+m? !:+"? o? -N-qS-sS-+? 3N-2:+q? !:-2:+s? !:+#? u
? -N-wS-yS-{S-}S-S-?S-?S-?S-?S- ?S-+? 3N-2:+w? !:-2:+y? !:-2:+{? !:-2:+}? !:-2:+? !:-2:+?? !:-2:+?? !:-2:+?? !:-2:+?? !:- 2:+?? !:+'? ?
? -N-?S-?S-?S-?S-?S-?S-?S-?S-?S- ?S-+? 3N-2:+?? !:-2:+?? !:-2:+?? !:-2:+?? !:-2:+?? !:-2:+?? !:-2:+?? !:-2:+?? !:-2:+?? !:- 2:+?? !:+*? ?? -N-?S-+? 3N-2:+?? !:++? ?? -N-?S-+? 3N-2:+?? !:+/? ? ?Y? ?Y+?? ??? ?SY+?? ??? ?SY+?? ??? ?SY+?? ??? ?SY+?? ??? ?S? ?N+?-? !N+7? ? ?N+?-? !N+8?
? ? ? ȶ ?N+?-? !N+9? ? ?N+?-? !N+