Skip to main content

split_http_url

Function split_http_url 

Source
pub(crate) fn split_http_url(url: &str) -> Option<(bool, String, String)>
Expand description

URL を (is_https, host, path) に分解。スキーム無しは弾く(絶対のみ)。 string_slice lint を避けるため添字スライスは使わず split_once/strip_prefix で処理。