pub fn create_prefix(
protocol: Protocol,
domain: impl AsRef<str>,
port: Option<u16>,
path: Option<impl AsRef<str>>,
) -> StringExpand description
Create a URL prefix string.
If port is equal to the default port of the protocol, it will be omitted.