Add missing definitions to requests.utils (#3567)

Added:
+ DEFAULT_PORTS
+ extract_zipped_paths
+ select_proxy
+ rewind_body
This commit is contained in:
Pavel Savchenko
2020-01-05 17:07:36 +02:00
committed by Sebastian Rittau
parent b4d1da03aa
commit 616b6d0f3b

View File

@@ -14,11 +14,13 @@ InvalidURL = exceptions.InvalidURL
NETRC_FILES: Any
DEFAULT_CA_BUNDLE_PATH: Any
DEFAULT_PORTS: Any
def dict_to_sequence(d): ...
def super_len(o): ...
def get_netrc_auth(url): ...
def guess_filename(obj): ...
def extract_zipped_paths(path): ...
def from_key_val_list(value): ...
def to_key_val_list(value): ...
def parse_list_header(value): ...
@@ -43,6 +45,7 @@ def is_valid_cidr(string_network): ...
def set_environ(env_name, value): ...
def should_bypass_proxies(url): ...
def get_environ_proxies(url): ...
def select_proxy(url, proxies): ...
def default_user_agent(name=...): ...
def default_headers(): ...
def parse_header_links(value): ...
@@ -51,3 +54,4 @@ def prepend_scheme_if_needed(url, new_scheme): ...
def get_auth_from_url(url): ...
def to_native_string(string, encoding=...): ...
def urldefragauth(url): ...
def rewind_body(prepared_request): ...