1 # Stubs for requests.utils (Python 3)
\r
3 from typing import Any
\r
5 from . import cookies
\r
6 from . import structures
\r
7 from . import exceptions
\r
9 OrderedDict = compat.OrderedDict
\r
10 RequestsCookieJar = cookies.RequestsCookieJar
\r
11 cookiejar_from_dict = cookies.cookiejar_from_dict
\r
12 CaseInsensitiveDict = structures.CaseInsensitiveDict
\r
13 InvalidURL = exceptions.InvalidURL
\r
15 NETRC_FILES = ... # type: Any
\r
16 DEFAULT_CA_BUNDLE_PATH = ... # type: Any
\r
18 def dict_to_sequence(d): ...
\r
19 def super_len(o): ...
\r
20 def get_netrc_auth(url): ...
\r
21 def guess_filename(obj): ...
\r
22 def from_key_val_list(value): ...
\r
23 def to_key_val_list(value): ...
\r
24 def parse_list_header(value): ...
\r
25 def parse_dict_header(value): ...
\r
26 def unquote_header_value(value, is_filename=...): ...
\r
27 def dict_from_cookiejar(cj): ...
\r
28 def add_dict_to_cookiejar(cj, cookie_dict): ...
\r
29 def get_encodings_from_content(content): ...
\r
30 def get_encoding_from_headers(headers): ...
\r
31 def stream_decode_response_unicode(iterator, r): ...
\r
32 def iter_slices(string, slice_length): ...
\r
33 def get_unicode_from_response(r): ...
\r
35 UNRESERVED_SET = ... # type: Any
\r
37 def unquote_unreserved(uri): ...
\r
38 def requote_uri(uri): ...
\r
39 def address_in_network(ip, net): ...
\r
40 def dotted_netmask(mask): ...
\r
41 def is_ipv4_address(string_ip): ...
\r
42 def is_valid_cidr(string_network): ...
\r
43 def set_environ(env_name, value): ...
\r
44 def should_bypass_proxies(url): ...
\r
45 def get_environ_proxies(url): ...
\r
46 def default_user_agent(name=...): ...
\r
47 def default_headers(): ...
\r
48 def parse_header_links(value): ...
\r
49 def guess_json_utf(data): ...
\r
50 def prepend_scheme_if_needed(url, new_scheme): ...
\r
51 def get_auth_from_url(url): ...
\r
52 def to_native_string(string, encoding=...): ...
\r
53 def urldefragauth(url): ...
\r