pub fn apply_endpoint(
    uri: &mut Uri,
    endpoint: &Uri,
    prefix: Option<&EndpointPrefix>
) -> Result<(), InvalidEndpoint>
Expand description

Apply endpoint to uri

This method mutates uri by setting the endpoint on it

Panics

This method panics if uri does not have a scheme