Function swagger_client::router::url_for
[−]
[src]
pub fn url_for(
request: &Request,
route_id: &str,
params: HashMap<String, String, RandomState>
) -> Url
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.