Module hdrezka.url
Default HDRezka host and redirect URL constants.
Global variables
var DEFAULT_HOST : str-
Default mirror base URL used when a client is created without an explicit host.
var DEFAULT_REDIRECT_URL : str-
Standby URL that redirects to an active mirror (used by
HDRezkaClient.login).
Classes
class Request-
Expand source code
class Request: """ Namespace of default request URL constants. Prefer configuring host on ``HDRezkaClient`` (``host=`` / ``login``). Attributes here are defaults only and are not shared session state. """ HOST: str = DEFAULT_HOST REDIRECT_URL: str = DEFAULT_REDIRECT_URL @classmethod def host_join(cls, url: str | None, allow_fragments: bool = True) -> str: """Join ``url`` with ``cls.HOST`` (default host only).""" return urljoin(cls.HOST, url, allow_fragments=allow_fragments)Namespace of default request URL constants.
Prefer configuring host on
HDRezkaClient(host=/login). Attributes here are defaults only and are not shared session state.Class variables
var HOST : str-
The type of the None singleton.
var REDIRECT_URL : str-
The type of the None singleton.
Static methods
def host_join(url: str | None, allow_fragments: bool = True) ‑> str-
Join
urlwithcls.HOST(default host only).