Function url::quirks::set_protocol [] [src]

pub fn set_protocol(url: &mut Url, new_protocol: &str) -> Result<(), ()>

Setter for https://url.spec.whatwg.org/#dom-url-protocol