mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 14:01:55 +08:00
Add missing definitions to requests.utils (#3567)
Added: + DEFAULT_PORTS + extract_zipped_paths + select_proxy + rewind_body
This commit is contained in:
committed by
Sebastian Rittau
parent
b4d1da03aa
commit
616b6d0f3b
4
third_party/2and3/requests/utils.pyi
vendored
4
third_party/2and3/requests/utils.pyi
vendored
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user