kr.motd.maven.sphinx.dist.requests.cookies$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.cookies
~~~~~~~~~~~~~~~~
Compatibility code to be able to use `cookielib.CookieJar` with requests.
requests.utils imports from here, so be careful with imports.
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
copy org/python/core/imp importOne H(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject;
setlocal
time " calendar $ collections & _internal_utils ( java/lang/String * to_native_string ,
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject; . /
0 compat 2 cookielib 4 urlparse 6
urlunparse 8 Morsel : threading < org/python/core/Py > setException M(Ljava/lang/Throwable;Lorg/python/core/PyFrame;)Lorg/python/core/PyException; @ A
? B ImportError D getname .(Ljava/lang/String;)Lorg/python/core/PyObject; F G
H org/python/core/PyException J match (Lorg/python/core/PyObject;)Z L M
K N dummy_threading P importOneAs R
S java/lang/Throwable U org/python/core/PyObject W object Y MockRequest [
MockRequest$1
__module__ ^ __name__ `?Wraps a `requests.Request` to mimic a `urllib2.Request`.
The code in `cookielib.CookieJar` expects this interface in order to correctly
manage cookie policies, i.e., determine whether a cookie can be set, given the
domains of the request and the cookie.
The original request object is read-only. The client is responsible for collecting
the new headers via `get_new_headers()` and interpreting them appropriately. You
probably want `get_cookie_header`, defined below.
b EmptyObjects [Lorg/python/core/PyObject; d e ? f org/python/core/PyFunction h f_globals Lorg/python/core/PyObject; j k l
__init__$2 getlocal (I)Lorg/python/core/PyObject; o p
q _r s __setattr__ u
X v org/python/core/PyDictionary x ([Lorg/python/core/PyObject;)V z {
y | _new_headers ~ getglobal ? G
? __getattr__ ? G
X ? url ? __call__ S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
X ? scheme ? type ? f_lasti I ? ? ? None ? k ? ? requests/cookies$py ? Lorg/python/core/PyCode; n ? ? ? j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V z ?
i ? __init__ ?
get_type$3 ? ? ? ? get_type ?
get_host$4 netloc ? ? ? ? ? get_host ? get_origin_req_host$5 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; ? ?
X ? ? ? ? ? get_origin_req_host ? get_full_url$6 headers ? get ? Host ? __not__ ()Lorg/python/core/PyObject; ? ?
X ? __nonzero__ ()Z ? ?
X ? __getitem__ 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
X ? utf-8 ? encoding ? g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject; ? ?
X ? (ILorg/python/core/PyObject;)V ?
? org/python/core/PyList ? path ? params ? query ? fragment ?
? | ? ? ? ? get_full_url ? is_unverifiable$7 True ? ? ? ? ? is_unverifiable ? has_header$8 _in ? ?
X ? ? ? ? ?
has_header ? ? get_header$9 m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
X ? ? ? ? ?
get_header ?
add_header$10 Mcookielib has no legitimate use for this method; add it back if you find one. ? NotImplementedError ? =Cookie headers should be added with add_unredirected_header() ?
makeException 9(Lorg/python/core/PyObject;)Lorg/python/core/PyException;
? ? ? ?
add_header add_unredirected_header$11 __setitem__ 7(Lorg/python/core/PyObject;Lorg/python/core/PyObject;)V
X ? ?
add_unredirected_header get_new_headers$12 ? ? get_new_headers unverifiable$13 ? ? property unverifiable origin_req_host$14 ? ? origin_req_host host$15" ? ?# host% getf_locals' ?
( ] ? ?* makeClass a(Ljava/lang/String;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;)Lorg/python/core/PyObject;,-
?. java/util/Arrays0 fill (([Ljava/lang/Object;Ljava/lang/Object;)V23
14 MockResponse6 MockResponse$16 ?Wraps a `httplib.HTTPMessage` to mimic a `urllib.addinfourl`.
...what? Basically, expose the parsed HTTP headers from the server response
the way `cookielib` expects to see them.
9 __init__$17 ?Make a MockResponse for `cookielib` to read.
:param headers: a httplib.HTTPMessage or analogous carrying the headers
< _headers>; ? ?@ info$18B ? ?C infoE
getheaders$19
getheadersHG ? ?J8 ? ?L extract_cookies_to_jar$20 ?Extract the cookies from the response into a CookieJar.
:param jar: cookielib.CookieJar (not necessarily a RequestsCookieJar)
:param request: our own requests.Request object
:param response: urllib3.HTTPResponse object
O hasattrQ _original_responseS msgU extract_cookiesWN ? ?Y extract_cookies_to_jar[ get_cookie_header$21 j
Produce an appropriate Cookie header string to be sent with `request`, or None.
:rtype: str
^ add_cookie_header` Cookieb] ? ?d get_cookie_headerf remove_cookie_by_name$22 kUnsets a cookie by name, by default over all domains and paths.
Wraps CookieJar.clear(), is O(n).
i __iter__k ?
Xl namen _nep ?
Xq _isnots ?
Xt domainv appendx org/python/core/PyTuplez
{ | __iternext__} ?
X~ unpackSequence 8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject;??
?? clear? ?(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ??
X?h ? ?? remove_cookie_by_name? RuntimeError? CookieConflictError? CookieConflictError$23 ?There are two cookies that meet the criteria specified in the cookie jar.
Use .get and .set and include domain and path args in order to be more specific.
?? ? ?? CookieJar? MutableMapping? RequestsCookieJar? RequestsCookieJar$24?Compatibility class; is a cookielib.CookieJar, but exposes a dict
interface.
This is the CookieJar we create by default for requests and sessions that
don't specify one, since some clients may expect response.cookies and
session.cookies to support dict operations.
Requests does not use the dict interface internally; it's just for
compatibility with external client code. All requests code should work
out of the box with externally provided instances of ``CookieJar``, e.g.
``LWPCookieJar`` and ``FileCookieJar``.
Unlike a regular CookieJar, this class is pickleable.
.. warning:: dictionary operations that are normally O(1) may be O(n).
? get$25 ?Dict-like get() that also supports optional domain and path args in
order to resolve naming collisions from using one cookie jar over
multiple domains.
.. warning:: operation is O(n), not O(1).
? _find_no_duplicates? KeyError?? ? ?? set$26 ?Dict-like set() that also supports optional domain and path args in
order to resolve naming collisions from using one cookie jar over
multiple domains.
? _is? ?
X?
isinstance? morsel_to_cookie?
create_cookie?
_callextra ~([Lorg/python/core/PyObject;[Ljava/lang/String;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;??
X?
set_cookie?? ? ?? set? iterkeys$27 ?Dict-like iterkeys() that returns an iterator of names of cookies
from the jar.
.. seealso:: itervalues() and iteritems().
? iter? java/lang/Object?
f_savedlocals [Ljava/lang/Object;?? ? getGeneratorInput ()Ljava/lang/Object;??
?? ? ?? iterkeys? keys$28 ?Dict-like keys() that returns a list of names of cookies from the
jar.
.. seealso:: values() and items().
? list?? ? ?? keys?
itervalues$29 ?Dict-like itervalues() that returns an iterator of values of cookies
from the jar.
.. seealso:: iterkeys() and iteritems().
? value?? ? ??
itervalues? values$30 ?Dict-like values() that returns a list of values of cookies from the
jar.
.. seealso:: keys() and items().
?? ? ?? values? iteritems$31 ?Dict-like iteritems() that returns an iterator of name-value tuples
from the jar.
.. seealso:: iterkeys() and itervalues().
?? ? ?? iteritems? items$32 ?Dict-like items() that returns a list of name-value tuples from the
jar. Allows client-code to call ``dict(RequestsCookieJar)`` and get a
vanilla python dict of key value pairs.
.. seealso:: keys() and values().
?? ? ?? items? list_domains$33 2Utility method to list all the domains in the jar.? _notin? ?
X?? ? ?? list_domains
list_paths$34 0Utility method to list all the paths in the jar. ? ?
list_paths multiple_domains$35 vReturns True if there are multiple domains in the jar.
Returns False otherwise.
:rtype: bool
False ? ? multiple_domains get_dict$36 ?Takes as an argument an optional domain and path and returns a plain
old Python dict of name-value pairs of cookies that meet the
requirements.
:rtype: dict
_eq ?
X ? ? get_dict __contains__$37 super __contains__ ? ?! __getitem__$38 ?Dict-like __getitem__() for compatibility with client code. Throws
exception if there are more than one cookie with name. In that case,
use the more explicit get() method instead.
.. warning:: operation is O(n), not O(1).
$# ? ?& ? __setitem__$39 ?Dict-like __setitem__ for compatibility with client code. Throws
exception if there is already a cookie of that name in the jar. In that
case, use the more explicit set() method instead.
*) ? ?, __delitem__$40 lDeletes a cookie given a name. Wraps ``cookielib.CookieJar``'s
``remove_cookie_by_name()``.
0/ ? ?2 __delitem__4
set_cookie$41
startswith7 "9 endswith; replace= \"? A6 ? ?C update$42 AUpdates this jar with cookies from another CookieJar or dict-likeF updateHE ? ?J _find$43?Requests uses this method internally to get cookie values.
If there are conflicting cookies, _find arbitrarily chooses one.
See _find_no_duplicates if you want an exception thrown if there are
conflicting cookies.
:param name: a string containing name of cookie
:param domain: (optional) string containing domain of cookie
:param path: (optional) string containing path of cookie
:return: cookie.value
M name=%r, domain=%r, path=%rO _modQ ?
XRL ? ?T _findV _find_no_duplicates$44?Both ``__get_item__`` and ``get`` call this function: it's never
used elsewhere in Requests.
:param name: a string containing name of cookie
:param domain: (optional) string containing domain of cookie
:param path: (optional) string containing path of cookie
:raises KeyError: if cookie is not found
:raises CookieConflictError: if there are multiple cookies
that match name and optionally domain and path
:return: cookie.value
Y (There are multiple cookies with name, %r[X ? ?] __getstate__$45 4Unlike a normal CookieJar, this class is pickleable.` __dict__b popd
_cookies_lockf_ ? ?h __getstate__j __setstate__$46 RLockml ? ?o __setstate__q copy$47 (Return a copy of this RequestsCookieJar.ts ? ?v? ? ?x _copy_cookie_jar$48z ? ?{ _copy_cookie_jar} create_cookie$49 ?Make a cookie from underspecified parameters.
By default, the pair of `name` and `value` will be set for the domain ''
and sent on every request (this is sometimes called a "supercookie").
? dict?
newInteger (I)Lorg/python/core/PyInteger;??
?? /? HttpOnly? version? port? secure? expires? discard? comment? comment_url? rest? rfc2109? _sub? ?
X? 4create_cookie() got unexpected keyword arguments: %s? TypeError? bool? port_specified? domain_specified? .? domain_initial_dot? path_specified? ? ?? morsel_to_cookie$50 BConvert a Morsel object into a Cookie containing the one k/v pair.? max-age? int? _add? ?
X?
ValueError? max-age: %s must be integer? %a, %d-%b-%Y %H:%M:%S GMT? timegm? strptime? key? httponly?? ? ?? cookiejar_from_dict$51-Returns a CookieJar from a key/value dictionary.
:param cookie_dict: Dict of key/values to insert into CookieJar.
:param cookiejar: (optional) A cookiejar to add the cookies to.
:param overwrite: (optional) If False, will not replace cookies
already in the jar with new ones.
? ()V z?
?? dellocal?
?? ? ?? cookiejar_from_dict? merge_cookies$52 ?Add cookies to cookiejar and returns a merged CookieJar.
:param cookiejar: CookieJar object to add the cookies to.
:param cookies: Dictionary or CookieJar object to be added.
? !You can only merge into CookieJar? cookiejar? overwrite? AttributeError?? ? ??
merge_cookies? (Ljava/lang/String;)V org/python/core/PyFunctionTable?
?? self Lrequests/cookies$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? parsed? default? val jar response req res r
clearables cookie kwargs c domains paths
dictionary args other toReturn state new_cj" new_jar$ result& badargs( err* morsel,
time_template. cookie_dict0 names_from_jar2 _[515_26]4 cookies6
cookie_in_jar8 getMain ()Lorg/python/core/PyCode; main ([Ljava/lang/String;)V ? z?
??:;
?A org/python/core/CodeLoaderC createSimpleBootstrap 9(Lorg/python/core/PyCode;)Lorg/python/core/CodeBootstrap;EF
DG runMain 5(Lorg/python/core/CodeBootstrap;[Ljava/lang/String;)VIJ
?K getCodeBootstrap !()Lorg/python/core/CodeBootstrap; #org/python/core/PyRunnableBootstrapO )getFilenameConstructorReflectionBootstrap 2(Ljava/lang/Class;)Lorg/python/core/CodeBootstrap;QR
PS
call_function S(ILorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;
?W ]
?Y n
?[ ?
?] ?
?_ ?
?a ?
?c ?
?e ?
?g ?
?i ?
?k
?m
?o
?q
?s"
?u8
?w;
?yB
?{G
?}N
?]
??h
???
???
???
???
???
???
???
???
???
???
???
??
??
??
??
??#
??)
??/
??6
??E
??L
??X
??_
??l
??s
??z
??
???
???
???
?? org/python/core/PyRunnable? Lorg/python/compiler/APIVersion; % Lorg/python/compiler/MTime; `9?? Lorg/python/compiler/Filename; Z/home/trustin/Workspaces/sphinx-maven-plugin/target/update-sphinx/dist/requests/cookies.py org/python/core/ThreadState? e? [Ljava/lang/String;? Code LineNumberTable StackMap
SourceFile RuntimeVisibleAnnotations ! ?? ? 6 ?? ? ] ? n ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? " ? 8 ? ; ? B ? G ? N ? ] ? h ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # ? ) ? / ? 6 ? E ? L ? X ? _ ? l ? s ? z ? ? ? ? ? ? ? ? : ? p ?+? ? +
? ? W+? +? N+-? !N+
? #+? N+#-? !N+? %+? N+%-? !N+? '+? N+'-? !N+? )? +N--S-+? 1N-2:+-? !:+? 3? +N-5S-7S-9S-;S-+? 1N-2:+5? !:-2:+7? !:-2:+9? !:-2:+;? !:+? =+? N+=-? !N? 4+? CN-+E? I? O? +? Q+? T:+=? !:? -?+? ? XN+Z? I-__S\-?+?/:+\? !:-?5+b? ? XN+Z? I-__S7-?M?/:+7? !:-?5+w? ? gN? iY+? m-?ZP? ? ?N+\-? !N+ ?? ? gN? iY+? m-?e_? ? ?N+g-? !N+ ?? ? XN+? I-__S+? I-__S? iY+? m-??j? ? ?N+?-? !N+ ?? ? XN+?? I-__S?-???/:+?? !:-?5+ ?? ? XN+5? I?? ?-__S+'? I?? ?-__S?-?y?/:+?? !:-?5+?? ? gN? iY+? m-?|? ?N+~-? !N+?? ? gN? iY+? m-???? ? ?N+?-? !N+ض ? gN? iY+? m-???? ? ?N+?-? !N+?? ? XN+? I-__S+? I-__S? iY+? m-??ϸ ? ?N+?-? !N+? ? gN? iY+? m-??ܸ ? ?N+?-? !N+? ?? ?? V ? V
b w ? ? ? ? ? ? ? ? ? > ? ?? VM ? ? K O ? ? K ] ? ? c+_+a? I? !+c? ? !+$? c? W+&? ? gN? iY+? m-? ?? ?N+?-? !N++? ? gN? iY+? m-? ?? ?N+?-? !N+.? ? gN? iY+? m-? ?? ?N+?-? !N+1? ? gN? iY+? m-? ?? ?N+?-? !N+4? ? gN? iY+? m-? ?? ?N+?-? !N+B? ? gN? iY+? m-? ?? ?N+?-? !N+E? ? gN? iY+? m-? ?? ?N+?-? !N+H? ? XN+? I-__S? iY+? m-? ?? ?N+?-? !N+K? ? gN? iY+? m-??? ? ?N+-? !N+O? ? gN? iY+? m-?? ?N+-? !N+R? ? gN? iY+? m-?? ?N+-? !N+U? ? gN? iY+? m-?? ?N+? I,-? ?N-N+-? !N+Y? ? gN? iY+? m-?? ?N+? I,-? ?N-N+!-? !N+]? ? gN? iY+? m-?$? ?N+? I,-? ?N-N+&-? !N+?)? ? > $ &