kr.motd.maven.sphinx.dist.requests.sessions$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.session
~~~~~~~~~~~~~~~~
This module provides a Session object to manage and persist settings across
requests (cookies, auth, proxies).
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
os org/python/core/imp importOne H(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject;
setlocal
platform " time $ collections & java/lang/String ( Mapping *
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject; , -
. datetime 0 timedelta 2 auth 4 _basic_auth_str 6 compat 8 cookielib : is_py3 < OrderedDict > urljoin @ urlparse B cookies D cookiejar_from_dict F extract_cookies_to_jar H RequestsCookieJar J
merge_cookies L models N Request P PreparedRequest R DEFAULT_REDIRECT_LIMIT T hooks V
default_hooks X
dispatch_hook Z _internal_utils \ to_native_string ^ utils ` to_key_val_list b default_headers d
exceptions f TooManyRedirects h
InvalidSchema j ChunkedEncodingError l ContentDecodingError n
structures p CaseInsensitiveDict r adapters t HTTPAdapter v requote_uri x get_environ_proxies z get_netrc_auth | should_bypass_proxies ~ get_auth_from_url ? rewind_body ? status_codes ? codes ? REDIRECT_STATI ? getname .(Ljava/lang/String;)Lorg/python/core/PyObject; ? ?
? system ? org/python/core/PyObject ? __getattr__ ? ?
? ? __call__ 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; ? ?
? ? Windows ? _eq 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
? ? __nonzero__ ()Z ? ?
? ? perf_counter ? preferred_clock ? org/python/core/Py ? setException M(Ljava/lang/Throwable;Lorg/python/core/PyFrame;)Lorg/python/core/PyException; ? ?
? ? AttributeError ? org/python/core/PyException ? match (Lorg/python/core/PyObject;)Z ? ?
? ? clock ? java/lang/Throwable ? org/python/core/PyFunction ? f_globals Lorg/python/core/PyObject; ? ? ? merge_setting$1 ?Determines appropriate setting for a given request, taking into account
the explicit setting on that request, and the setting in the session. If a
setting is a dictionary, they will be merged together using `dict_class`
? getlocal (I)Lorg/python/core/PyObject; ? ?
? None ? getglobal ? ?
? _is ? ?
? ? f_lasti I ? ? ?
isinstance ? m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
? ? __not__ ()Lorg/python/core/PyObject; ? ?
? ? S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
? ? (ILorg/python/core/PyObject;)V ?
? update ? org/python/core/PyList ? ()V ? ?
? ? append ? items ? __iter__ ? ?
? ? unpackSequence 8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject; ? ?
? ? __iternext__ ? ?
? ? dellocal ?
? __delitem__ (Lorg/python/core/PyObject;)V ? ?
? ? requests/sessions$py ? Lorg/python/core/PyCode; ? ? j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V ?
?
merge_setting
merge_hooks$2 ?Properly merges both requests and session hooks.
This is necessary because when request_hooks == {'response': []}, the
merge breaks Session hooks entirely.
get response
EmptyObjects [Lorg/python/core/PyObject; ? ([Lorg/python/core/PyObject;)V ?
? ?(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ?
? ? merge_hooks object SessionRedirectMixin SessionRedirectMixin$3
__module__" __name__$ get_redirect_target$4 7Receives a Response. Returns a redirect URI or ``None``' is_redirect) headers+ location- __getitem__/ ?
?0 encode2 latin14 utf86& ?8 get_redirect_target: False< True> resolve_redirects$5 BReceives a Response. Returns a generator of Responses or Requests.A java/util/ArraysC fill (([Ljava/lang/Object;Ljava/lang/Object;)VEF
DG copyI
newInteger (I)Lorg/python/core/PyInteger;KL
?M __getslice__ j(Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;OP
?Q historyS __setattr__U
?V contentX RuntimeErrorZ org/python/core/PyTuple\
] raw_ reada decode_contentc g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject; ?e
?f lenh
max_redirectsj _gel ?
?m Exceeded %s redirects.o _modq ?
?r
makeException 9(Lorg/python/core/PyObject;)Lorg/python/core/PyException;tu
?v closex
startswithz //| url~ %s:%s? scheme? geturl? netloc? rebuild_method? status_code? temporary_redirect? permanent_redirect? _notin? ?
?? Content-Length? Content-Type? Transfer-Encoding? pop? body? Cookie? KeyError? _cookies? prepare_cookies? rebuild_proxies? rebuild_auth? _body_position? _isnot? ?
?? _in? ?
?? java/lang/Object?
f_savedlocals [Ljava/lang/Object;?? ? getGeneratorInput ()Ljava/lang/Object;??
? send? stream? timeout? verify? cert? proxies? allow_redirects?
_callextra ~([Lorg/python/core/PyObject;[Ljava/lang/String;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;??
?? ? ? ??@ ?? resolve_redirects? rebuild_auth$6 ?When being redirected we may want to strip authentication from the
request to avoid leaking credentials. This method intelligently removes
and reapplies authentication where possible to avoid credential loss.
?
Authorization? request? hostname? _ne? ?
?? trust_env? prepare_auth?? ?? rebuild_proxies$7?This method re-evaluates the proxy configuration by considering the
environment variables. If we are redirected to a URL covered by
NO_PROXY, we strip the proxy configuration. Otherwise, we set missing
proxy keys for this URL (in case they were stripped by a previous
redirect).
This method also replaces the Proxy-Authorization header where
necessary.
:rtype: dict
? org/python/core/PyDictionary?
? no_proxy? all?
setdefault? Proxy-Authorization? __setitem__ 7(Lorg/python/core/PyObject;Lorg/python/core/PyObject;)V??
??? ?? rebuild_method$8 ?When being redirected we may want to change the method of the request
based on certain specs or browser behavior.
? method? see_other? HEAD GET found moved POST? ?
getf_locals ?
! ? makeClass a(Ljava/lang/String;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;)Lorg/python/core/PyObject;
? Session Session$9~A Requests session.
Provides cookie persistence, connection-pooling, and configuration.
Basic Usage::
>>> import requests
>>> s = requests.Session()
>>> s.get('http://httpbin.org/get')
Or as a context manager::
>>> with requests.Session() as s:
>>> s.get('http://httpbin.org/get')
params prefetch __attrs__ __init__$10 mount! https://# http://% ?' __init__) __enter__$11+ ?, __enter__. __exit__$120 ?1 __exit__3 prepare_request$13?Constructs a :class:`PreparedRequest ` for
transmission and returns it. The :class:`PreparedRequest` has settings
merged from the :class:`Request ` instance and those of the
:class:`Session`.
:param request: :class:`Request` instance to prepare with this
session's settings.
:rtype: requests.PreparedRequest
6 CookieJar8 prepare: upper< files> data@ jsonB
dict_classD5 ?F prepare_requestH
request$14?Constructs a :class:`Request `, prepares it and sends it.
Returns :class:`Response ` object.
:param method: method for the new :class:`Request` object.
:param url: URL for the new :class:`Request` object.
:param params: (optional) Dictionary or bytes to be sent in the query
string for the :class:`Request`.
:param data: (optional) Dictionary, bytes, or file-like object to send
in the body of the :class:`Request`.
:param json: (optional) json to send in the body of the
:class:`Request`.
:param headers: (optional) Dictionary of HTTP Headers to send with the
:class:`Request`.
:param cookies: (optional) Dict or CookieJar object to send with the
:class:`Request`.
:param files: (optional) Dictionary of ``'filename': file-like-objects``
for multipart encoding upload.
:param auth: (optional) Auth tuple or callable to enable
Basic/Digest/Custom HTTP Auth.
:param timeout: (optional) How long to wait for the server to send
data before giving up, as a float, or a :ref:`(connect timeout,
read timeout) ` tuple.
:type timeout: float or tuple
:param allow_redirects: (optional) Set to True by default.
:type allow_redirects: bool
:param proxies: (optional) Dictionary mapping protocol or protocol and
hostname to the URL of the proxy.
:param stream: (optional) whether to immediately download the response
content. Defaults to ``False``.
:param verify: (optional) Either a boolean, in which case it controls whether we verify
the server's TLS certificate, or a string, in which case it must be a path
to a CA bundle to use. Defaults to ``True``.
:param cert: (optional) if String, path to ssl client cert file (.pem).
If Tuple, ('cert', 'key') pair.
:rtype: requests.Response
K merge_environment_settingsM T(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ?O
?PJ ?R get$15 ?Sends a GET request. Returns :class:`Response` object.
:param url: URL for the new :class:`Request` object.
:param \*\*kwargs: Optional arguments that ``request`` takes.
:rtype: requests.Response
UT ?W
options$16 ?Sends a OPTIONS request. Returns :class:`Response` object.
:param url: URL for the new :class:`Request` object.
:param \*\*kwargs: Optional arguments that ``request`` takes.
:rtype: requests.Response
Z OPTIONS\Y ?^ options` head$17 ?Sends a HEAD request. Returns :class:`Response` object.
:param url: URL for the new :class:`Request` object.
:param \*\*kwargs: Optional arguments that ``request`` takes.
:rtype: requests.Response
cb ?e headg post$18?Sends a POST request. Returns :class:`Response` object.
:param url: URL for the new :class:`Request` object.
:param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.
:param json: (optional) json to send in the body of the :class:`Request`.
:param \*\*kwargs: Optional arguments that ``request`` takes.
:rtype: requests.Response
ji ?l postn put$19YSends a PUT request. Returns :class:`Response` object.
:param url: URL for the new :class:`Request` object.
:param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.
:param \*\*kwargs: Optional arguments that ``request`` takes.
:rtype: requests.Response
q PUTsp ?u putw patch$20[Sends a PATCH request. Returns :class:`Response` object.
:param url: URL for the new :class:`Request` object.
:param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.
:param \*\*kwargs: Optional arguments that ``request`` takes.
:rtype: requests.Response
z PATCH|y ?~ patch? delete$21 ?Sends a DELETE request. Returns :class:`Response` object.
:param url: URL for the new :class:`Request` object.
:param \*\*kwargs: Optional arguments that ``request`` takes.
:rtype: requests.Response
? DELETE?? ?? delete? send$22 ISend a given PreparedRequest.
:rtype: requests.Response
?
ValueError? #You can only send PreparedRequests.? get_adapter? _sub? ?
?? seconds? elapsed? insert? next? yield_requests? _next?
StopIteration?? ?? merge_environment_settings$23 ^
Check the environment and merge it with some settings.
:rtype: dict
? environ? REQUESTS_CA_BUNDLE? CURL_CA_BUNDLE?? ?? get_adapter$24 ~
Returns the appropriate connection adapter for the given URL.
:rtype: requests.adapters.BaseAdapter
? lower? *No connection adapters were found for '%s'?? ?? close$25 +Closes all adapters and as such the session? values?? ?? mount$26 wRegisters a connection adapter to a prefix.
Adapters are sorted in descending order by prefix length.
? _lt? ?
??? ?? __getstate__$27 to_cell (II)V??
? dict? f$28 getattr? getderef? ?
?? ??
getclosure? ?
? ?(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;[Lorg/python/core/PyObject;)V ??
??? ?? __getstate__? __setstate__$29 setattr?? ?? __setstate__? ??
session$30 Q
Returns a :class:`Session` for context-management.
:rtype: Session
?? ?? session? (Ljava/lang/String;)V org/python/core/PyFunctionTable?
? ? self Lrequests/sessions$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;??
?? ? request_setting session_setting merged_setting none_keys _[74_17] k
v key
request_hooks
session_hooks? resp req adapter_kwargs hist prepared_request parsed_rurl" parsed$ purged_headers& header(
rewindable* original_parsed, redirect_parsed. new_auth0 new_proxies2 bypass_proxy4 environ_proxies6 proxy8 username: password< args> merged_cookies@ pB prepD settingsF send_kwargsH kwargsJ adapterL startN rP genR _[640_19]T env_proxiesV prefixX keys_to_moveZ _[716_24]\ state^ _(722_21)` _(x)b attrd f valueh 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;
?? ?
??
??!
??&