Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BrendanBenshoof/cachewarmer
/ functions
Functions
575 in github.com/BrendanBenshoof/cachewarmer
⨍
Functions
575
◇
Types & classes
127
↓ 43 callers
Method
get
Sends a GET request. Returns :class:`Response` object. :param url: URL for the new :class:`Request` object. :param \*\*kwargs: Option
myrequests/sessions.py:469
↓ 22 callers
Function
wrap_ord
(a)
myrequests/packages/chardet/compat.py:30
↓ 21 callers
Method
get_state
(self)
myrequests/packages/chardet/hebrewprober.py:278
↓ 16 callers
Method
items
Dict-like items() that returns a list of name-value tuples from the jar. See keys() and values(). Allows client-code to call ``dict(Re
myrequests/cookies.py:232
↓ 14 callers
Method
pop
D.pop(k[,d]) -> v, remove specified key and return the corresponding value. If key is not found, d is returned if given, otherwise KeyError
myrequests/packages/urllib3/_collections.py:184
↓ 13 callers
Method
setdefault
od.setdefault(k[,d]) -> od.get(k,d), also set od[k]=d if k not in od
myrequests/packages/urllib3/packages/ordered_dict.py:190
↓ 11 callers
Method
read
Similar to :meth:`httplib.HTTPResponse.read`, but with two additional parameters: ``decode_content`` and ``cache_content``.
myrequests/packages/urllib3/response.py:205
↓ 11 callers
Method
update
Updates this jar with cookies from another CookieJar or dict-like
myrequests/cookies.py:302
↓ 8 callers
Method
get_confidence
(self)
myrequests/packages/chardet/utf8prober.py:69
↓ 8 callers
Function
merge_setting
Determines appropriate setting for a given request, taking into account the explicit setting on that request, and the setting in the session.
myrequests/sessions.py:42
↓ 8 callers
Method
request
Constructs a :class:`Request <Request>`, prepares it and sends it. Returns :class:`Response <Response>` object. :param method: method
myrequests/sessions.py:386
↓ 8 callers
Method
reset
(self)
myrequests/packages/chardet/utf8prober.py:42
↓ 7 callers
Method
close
Close all pooled connections and disable the pool.
myrequests/packages/urllib3/connectionpool.py:83
↓ 7 callers
Function
parse_url
Given a url, return a parsed :class:`.Url` namedtuple. Best-effort is performed to parse incomplete urls. Fields not provided will be None.
myrequests/packages/urllib3/util/url.py:121
↓ 7 callers
Function
request
Constructs and sends a :class:`Request <Request>`. :param method: method for the new :class:`Request` object. :param url: URL for the new :cl
myrequests/api.py:17
↓ 6 callers
Method
__init__
(self)
myrequests/packages/chardet/chardistribution.py:47
↓ 6 callers
Method
add
Adds a (name, value) pair, doesn't overwrite the value if it already exists. >>> headers = HTTPHeaderDict(foo='bar') >>> head
myrequests/packages/urllib3/_collections.py:207
↓ 6 callers
Function
cookiejar_from_dict
Returns a CookieJar from a key/value dictionary. :param cookie_dict: Dict of key/values to insert into CookieJar. :param cookiejar: (optional
myrequests/cookies.py:443
↓ 6 callers
Function
extract_cookies_to_jar
Extract the cookies from the response into a CookieJar. :param jar: cookielib.CookieJar (not necessarily a RequestsCookieJar) :param request:
myrequests/cookies.py:115
↓ 6 callers
Method
get
Dict-like get() that also supports optional domain and path args in order to resolve naming collisions from using one cookie jar over
myrequests/cookies.py:177
↓ 6 callers
Method
info
(self)
myrequests/cookies.py:108
↓ 6 callers
Method
pop
od.pop(k[,d]) -> v, remove specified key and return the corresponding value. If key is not found, d is returned if given, otherwise KeyError i
myrequests/packages/urllib3/packages/ordered_dict.py:177
↓ 6 callers
Method
update
od.update(E, **F) -> None. Update od from dict/iterable E and F. If E is a dict instance, does: for k in E: od[k] = E[k] I
myrequests/packages/urllib3/packages/ordered_dict.py:142
↓ 5 callers
Method
close
(self)
myrequests/packages/urllib3/response.py:348
↓ 5 callers
Method
copy
Return a copy of this RequestsCookieJar.
myrequests/cookies.py:356
↓ 5 callers
Method
next_state
(self, c)
myrequests/packages/chardet/codingstatemachine.py:42
↓ 5 callers
Method
send
(self)
myrequests/adapters.py:46
↓ 5 callers
Method
set_cookie
(self, cookie, *args, **kwargs)
myrequests/cookies.py:297
↓ 5 callers
Function
to_key_val_list
Take an object and test to see if it can be represented as a dictionary. If it can be, return a list of tuples, e.g., :: >>> to_key_
myrequests/utils.py:147
↓ 5 callers
Function
to_native_string
Given a string object, regardless of type, returns a representation of that string in the native string type, encoding and decoding where nec
myrequests/utils.py:676
↓ 4 callers
Method
__init__
(self, pool, message)
myrequests/packages/urllib3/exceptions.py:16
↓ 4 callers
Function
_add_doc
Add documentation to a function.
myrequests/packages/urllib3/packages/six.py:67
↓ 4 callers
Function
_basic_auth_str
Returns a Basic Auth string.
myrequests/auth.py:26
↓ 4 callers
Function
b
(s)
myrequests/packages/urllib3/packages/six.py:277
↓ 4 callers
Method
clear
Empty our store of pools and direct them all to close. This will not affect in-flight connections, but they will not be re-u
myrequests/packages/urllib3/poolmanager.py:92
↓ 4 callers
Method
connection_from_host
Get a :class:`ConnectionPool` based on the host, port, and scheme. If ``port`` isn't given, it will be derived from the ``scheme`` u
myrequests/packages/urllib3/poolmanager.py:101
↓ 4 callers
Method
decompress
(self, data)
myrequests/packages/urllib3/response.py:55
↓ 4 callers
Method
extend
Generic import function for any type of header-like object. Adapted version of MutableMapping.update in order to insert items with sel
myrequests/packages/urllib3/_collections.py:230
↓ 4 callers
Method
get_charset_name
(self)
myrequests/packages/chardet/utf8prober.py:47
↓ 4 callers
Method
get_current_charlen
(self)
myrequests/packages/chardet/codingstatemachine.py:57
↓ 4 callers
Method
increment
Return a new Retry object with incremented retry counters. :param response: A response object, or None, if the server did not re
myrequests/packages/urllib3/util/retry.py:209
↓ 4 callers
Method
items
(self)
myrequests/packages/urllib3/_collections.py:303
↓ 4 callers
Method
items
od.items() -> list of (key, value) pairs in od
myrequests/packages/urllib3/packages/ordered_dict.py:124
↓ 4 callers
Method
iteritems
Iterate over all header lines, including duplicate ones.
myrequests/packages/urllib3/_collections.py:290
↓ 4 callers
Method
register_hook
Properly register a hook.
myrequests/models.py:162
↓ 4 callers
Method
send
Send a given PreparedRequest.
myrequests/sessions.py:539
↓ 3 callers
Method
__init__
(self, host, port=None)
myrequests/packages/urllib3/connectionpool.py:63
↓ 3 callers
Method
_new_conn
Establish a socket connection and set nodelay settings on it. :return: New socket connection.
myrequests/packages/urllib3/connection.py:120
↓ 3 callers
Method
_put_conn
Put a connection back into the pool. :param conn: Connection object for the current host and port as returned by
myrequests/packages/urllib3/connectionpool.py:248
↓ 3 callers
Method
_validate_timeout
Check that a timeout attribute is valid. :param value: The timeout value to validate :param name: The name of the timeout attribute
myrequests/packages/urllib3/util/timeout.py:105
↓ 3 callers
Method
close
Closes all adapters and as such the session
myrequests/sessions.py:643
↓ 3 callers
Method
connect
(self)
myrequests/packages/urllib3/connection.py:154
↓ 3 callers
Method
copy
(self)
myrequests/models.py:308
↓ 3 callers
Function
create_cookie
Make a cookie from underspecified parameters. By default, the pair of `name` and `value` will be set for the domain '' and sent on every requ
myrequests/cookies.py:378
↓ 3 callers
Function
default_hooks
()
myrequests/hooks.py:20
↓ 3 callers
Method
from_int
Backwards-compatibility for the old retries format.
myrequests/packages/urllib3/util/retry.py:145
↓ 3 callers
Function
get_auth_from_url
Given a url with authentication components, extract them into a tuple of username,password.
myrequests/utils.py:663
↓ 3 callers
Method
get_redirect_location
Should we redirect and where to? :returns: Truthy redirect location string if we got a redirect status code and valid lo
myrequests/packages/urllib3/response.py:139
↓ 3 callers
Method
got_enough_data
(self)
myrequests/packages/chardet/jpcntx.py:166
↓ 3 callers
Method
iter_content
Iterates over the response data. When stream=True is set on the request, this avoids reading the content at once into memory for larg
myrequests/models.py:642
↓ 3 callers
Method
prepare_cookies
Prepares the given HTTP cookie data. This function eventually generates a ``Cookie`` header from the given cookies using cookielib. D
myrequests/models.py:495
↓ 3 callers
Method
release_conn
(self)
myrequests/packages/urllib3/response.py:152
↓ 3 callers
Method
request
Make a request using :meth:`urlopen` with the appropriate encoding of ``fields`` based on the ``method`` used. This is a con
myrequests/packages/urllib3/request.py:52
↓ 3 callers
Function
requote_uri
Re-quote the given URI. This function passes the given URI through an unquote/quote cycle to ensure that it is fully and consistently quoted.
myrequests/utils.py:417
↓ 3 callers
Method
settimeout
(self, timeout)
myrequests/packages/urllib3/contrib/pyopenssl.py:192
↓ 3 callers
Method
urlopen
(self, method, url, body=None, headers=None, encode_multipart=True, multipart_boundary=None,
myrequests/packages/urllib3/request.py:46
↓ 3 callers
Method
values
Dict-like values() that returns a list of values of cookies from the jar. See keys() and items().
myrequests/cookies.py:221
↓ 3 callers
Method
wrap_socket
(self, socket, server_hostname=None)
myrequests/packages/urllib3/util/ssl_.py:83
↓ 3 callers
Function
write
(data)
myrequests/packages/urllib3/packages/six.py:340
↓ 2 callers
Method
__init__
(self, name)
myrequests/packages/urllib3/packages/six.py:80
↓ 2 callers
Method
_copy_from
(self, other)
myrequests/packages/urllib3/_collections.py:277
↓ 2 callers
Method
_decode
Decode the data passed in and potentially flush the decoder.
myrequests/packages/urllib3/response.py:186
↓ 2 callers
Function
_dnsname_match
Matching according to RFC 6125, section 6.4.3 http://tools.ietf.org/html/rfc6125#section-6.4.3
myrequests/packages/urllib3/packages/ssl_match_hostname/_implementation.py:14
↓ 2 callers
Method
_encode_params
Encode parameters in a piece of data. Will successfully encode parameters when passed as a dict or a list of 2-tuples. Order is retai
myrequests/models.py:75
↓ 2 callers
Method
_find_no_duplicates
Both ``__get_item__`` and ``get`` call this function: it's never used elsewhere in Requests. Takes as args name and optional domain and
myrequests/cookies.py:324
↓ 2 callers
Method
_get_conn
Get a connection. Will return a pooled connection if one is available. If no connections are available and :prop:`.block` is ``False
myrequests/packages/urllib3/connectionpool.py:210
↓ 2 callers
Method
_get_timeout
Helper that always returns a :class:`urllib3.util.Timeout`
myrequests/packages/urllib3/connectionpool.py:288
↓ 2 callers
Function
_import_module
Import module, returning the module after the last dot.
myrequests/packages/urllib3/packages/six.py:72
↓ 2 callers
Method
_init_decoder
Set-up the _decoder attribute if necessar.
myrequests/packages/urllib3/response.py:176
↓ 2 callers
Method
_prepare_conn
(self, conn)
myrequests/packages/urllib3/connection.py:143
↓ 2 callers
Method
_raise_timeout
Is the error actually a timeout? Will raise a ReadTimeout or pass
myrequests/packages/urllib3/connectionpool.py:300
↓ 2 callers
Method
_validate_conn
Called right before a request is made, after the socket is created.
myrequests/packages/urllib3/connectionpool.py:278
↓ 2 callers
Method
build_digest_header
(self, method, url)
myrequests/auth.py:72
↓ 2 callers
Function
bytes_to_long
(bytestr)
pymultihash/pyMultiHash.py:20
↓ 2 callers
Method
clone
Create a copy of the timeout object Timeout properties are stored per-pool but each request needs a fresh Timeout object to ensure e
myrequests/packages/urllib3/util/timeout.py:154
↓ 2 callers
Method
close
(self)
myrequests/packages/chardet/universaldetector.py:134
↓ 2 callers
Method
close
(self)
myrequests/packages/urllib3/contrib/pyopenssl.py:211
↓ 2 callers
Method
connection_from_url
Similar to :func:`urllib3.connectionpool.connection_from_url` but doesn't pass any additional parameters to the :class:`urlli
myrequests/packages/urllib3/poolmanager.py:129
↓ 2 callers
Method
copy
(self)
myrequests/packages/urllib3/_collections.py:285
↓ 2 callers
Function
current_time
Retrieve the current time. This function is mocked out in unit testing.
myrequests/packages/urllib3/util/timeout.py:12
↓ 2 callers
Function
encode_multipart_formdata
Encode a dictionary of ``fields`` using the multipart/form-data MIME format. :param fields: Dictionary of fields or list of (key, :c
myrequests/packages/urllib3/filepost.py:58
↓ 2 callers
Method
feed
(self, aBuf)
myrequests/packages/chardet/universaldetector.py:64
↓ 2 callers
Method
from_float
Create a new Timeout from a legacy timeout value. The timeout value used by httplib.py sets the same timeout on the connect(), and r
myrequests/packages/urllib3/util/timeout.py:139
↓ 2 callers
Method
from_httplib
Given an :class:`httplib.HTTPResponse` instance ``r``, return a corresponding :class:`urllib3.response.HTTPResponse` object.
myrequests/packages/urllib3/response.py:313
↓ 2 callers
Method
get_charset_name
(self)
myrequests/packages/chardet/charsetgroupprober.py:50
↓ 2 callers
Method
get_connect_duration
Gets the time elapsed since the call to :meth:`start_connect`. :return: Elapsed time. :rtype: float :raises urllib3.exceptio
myrequests/packages/urllib3/util/timeout.py:180
↓ 2 callers
Function
get_encoding_from_headers
Returns encodings from given HTTP Header Dict. :param headers: dictionary to extract encoding from.
myrequests/utils.py:308
↓ 2 callers
Function
get_environ_proxies
Return a dict of environment proxies.
myrequests/utils.py:532
↓ 2 callers
Function
get_host
Deprecated. Use :func:`.parse_url` instead.
myrequests/packages/urllib3/util/url.py:209
↓ 2 callers
Method
get_host
(self)
myrequests/cookies.py:42
next →
1–100 of 575, ranked by callers