archivebox.core.host_utils

Module Contents

Functions

split_host_port

_normalize_base_url

normalize_base_url

get_listen_host

get_listen_parts

_build_listen_host

get_admin_host

get_web_host

get_api_host

get_public_host

get_snapshot_subdomain

get_snapshot_host

get_original_host

is_snapshot_subdomain

get_snapshot_lookup_key

get_listen_subdomain

host_matches

_scheme_from_request

_build_base_url_for_host

get_admin_base_url

get_web_base_url

get_api_base_url

get_public_base_url

get_archive_base_url

get_snapshot_base_url

get_original_base_url

build_admin_url

build_web_url

build_api_url

build_archive_url

build_snapshot_url

build_original_url

_build_url

Data

_SNAPSHOT_ID_RE

_SNAPSHOT_SUBDOMAIN_RE

API

archivebox.core.host_utils._SNAPSHOT_ID_RE[source]

β€˜compile(…)’

archivebox.core.host_utils._SNAPSHOT_SUBDOMAIN_RE[source]

β€˜compile(…)’

archivebox.core.host_utils.split_host_port(host: str) tuple[str, str | None][source]
archivebox.core.host_utils._normalize_base_url(value: str | None) str[source]
archivebox.core.host_utils.normalize_base_url(value: str | None) str[source]
archivebox.core.host_utils.get_listen_host() str[source]
archivebox.core.host_utils.get_listen_parts() tuple[str, str | None][source]
archivebox.core.host_utils._build_listen_host(subdomain: str | None) str[source]
archivebox.core.host_utils.get_admin_host() str[source]
archivebox.core.host_utils.get_web_host() str[source]
archivebox.core.host_utils.get_api_host() str[source]
archivebox.core.host_utils.get_public_host() str[source]
archivebox.core.host_utils.get_snapshot_subdomain(snapshot_id: str) str[source]
archivebox.core.host_utils.get_snapshot_host(snapshot_id: str) str[source]
archivebox.core.host_utils.get_original_host(domain: str) str[source]
archivebox.core.host_utils.is_snapshot_subdomain(subdomain: str) bool[source]
archivebox.core.host_utils.get_snapshot_lookup_key(snapshot_ref: str) str[source]
archivebox.core.host_utils.get_listen_subdomain(request_host: str) str[source]
archivebox.core.host_utils.host_matches(request_host: str, target_host: str) bool[source]
archivebox.core.host_utils._scheme_from_request(request=None) str[source]
archivebox.core.host_utils._build_base_url_for_host(host: str, request=None) str[source]
archivebox.core.host_utils.get_admin_base_url(request=None) str[source]
archivebox.core.host_utils.get_web_base_url(request=None) str[source]
archivebox.core.host_utils.get_api_base_url(request=None) str[source]
archivebox.core.host_utils.get_public_base_url(request=None) str[source]
archivebox.core.host_utils.get_archive_base_url(request=None) str[source]
archivebox.core.host_utils.get_snapshot_base_url(snapshot_id: str, request=None) str[source]
archivebox.core.host_utils.get_original_base_url(domain: str, request=None) str[source]
archivebox.core.host_utils.build_admin_url(path: str = '', request=None) str[source]
archivebox.core.host_utils.build_web_url(path: str = '', request=None) str[source]
archivebox.core.host_utils.build_api_url(path: str = '', request=None) str[source]
archivebox.core.host_utils.build_archive_url(path: str = '', request=None) str[source]
archivebox.core.host_utils.build_snapshot_url(snapshot_id: str, path: str = '', request=None) str[source]
archivebox.core.host_utils.build_original_url(domain: str, path: str = '', request=None) str[source]
archivebox.core.host_utils._build_url(base_url: str, path: str) str[source]