package documentation

Undocumented

From __init__.py:

Class HTTPResponse Undocumented
Class Url Undocumented
Exception Error Undocumented
Exception HTTPError Undocumented
Exception Timeout Undocumented
Function add_params Undocumented
Function extract_params Undocumented
Function http_request Undocumented
Function is_abs_url Undocumented
Function make_qs Convert a dict/list to a query string.
Function make_url Undocumented
Function parse_qs Undocumented
Function parse_url Parse a string url and return an Url object
Function quote_param Undocumented
Function quote_path Undocumented
Function unquote Undocumented
Function _cache_path Undocumented
Function _get_text Undocumented
Function _http_request Undocumented
Function _parse_content_type Undocumented
Constant _DEFAULT_CONNECT_TIMEOUT Undocumented
Constant _DEFAULT_READ_TIMEOUT Undocumented
def parse_url(url: str, **kwargs) -> Url: (source)

Parse a string url and return an Url object

def make_url(u: t.Optional[(Url|dict)] = None, **kwargs) -> str: (source)

Undocumented

def parse_qs(x) -> dict: (source)

Undocumented

def make_qs(x) -> str: (source)

Convert a dict/list to a query string.

For each item in x, if it's a list, join it with a comma, stringify and in utf8.

Parameters
xValue, which can be a dict'able or a list of key,value pairs.
Returns
strThe query string.
def quote_param(s: str) -> str: (source)

Undocumented

def quote_path(s: str) -> str: (source)

Undocumented

def unquote(s: str) -> str: (source)

Undocumented

def add_params(url: str, params: dict = None, **kwargs) -> str: (source)

Undocumented

def extract_params(url: str) -> tuple[str, dict]: (source)

Undocumented

def is_abs_url(url): (source)

Undocumented

def _get_text(content, encoding) -> str: (source)

Undocumented

def _parse_content_type(headers): (source)

Undocumented

def http_request(url, **kwargs) -> HTTPResponse: (source)

Undocumented

_DEFAULT_CONNECT_TIMEOUT: int = (source)

Undocumented

Value
60
_DEFAULT_READ_TIMEOUT: int = (source)

Undocumented

Value
60
def _http_request(method, url, kwargs) -> HTTPResponse: (source)

Undocumented

def _cache_path(url): (source)

Undocumented