Function url_for

Source
pub fn url_for(
    request: &Request<'_, '_>,
    route_id: &str,
    params: HashMap<String, String>,
) -> Url
Expand description

Generate a URL based off of the currently requested URL.

The route_id used during route registration will be used here again.

params will be inserted as route parameters if fitting, the rest will be appended as query parameters.