//! Shared literals for backend routing (avoid magic strings at call sites).
/// Substrings matched against `BackendNode.base_url` (lowercased) to treat the node as
/// «local» for legacy remote-URI assembly (`build_node_remote_uri`).
pub const LOCAL_NODE_HOST_MARKERS: & =
&;
/// `BackendNode.type` value: local filesystem streaming only (no remote `base_url` relay).
pub const DISK_BACKEND_TYPE: &str = "Disk";
/// `BackendNode.type` value: relay signed streams to another host (`base_url` + query).
pub const STREAM_RELAY_BACKEND_TYPE: &str = "StreamRelay";
/// True when `base_url` is empty or whitespace only (after trim).
/// True when `base_url` contains a loopback / placeholder host substring (see
/// [`LOCAL_NODE_HOST_MARKERS`]). Does **not** treat empty string as loopback; combine with
/// [`backend_base_url_is_empty`] at call sites when both semantics matter.