Skip to main content

create_prefix

Function create_prefix 

Source
pub fn create_prefix(
    protocol: Protocol,
    domain: impl AsRef<str>,
    port: Option<u16>,
    path: Option<impl AsRef<str>>,
) -> String
Expand description

Create a URL prefix string. If port is equal to the default port of the protocol, it will be omitted.