pub fn split_relative(url: &str) -> Option<(&str, &str)>Expand description
Prefilter url to a rewritable relative reference, returning
(path_part, suffix) where suffix is a preserved trailing #fragment /
?query. Returns None for anything left untouched: empty, root-absolute
(/…) or protocol-relative (//…), a pure fragment/query (#… / ?…), or an
external/non-path scheme (https:, mailto:, data:, tel:…).