destination_relative_path

Function destination_relative_path 

Source
pub fn destination_relative_path(
    headers: &HeaderMap,
    prefix: &str,
    request_scheme: &str,
    request_host: &str,
) -> Result<Destination, DavProtocolError>
Expand description

Parses and constrains Destination to the current origin and WebDAV mount.

ยงErrors

Returns DavProtocolError when Destination is absent, malformed, or cross-origin.