Skip to main content

url

Function url 

Source
pub fn url(base: &Url, path: impl AsRef<str>) -> Url
Expand description

Build a full request URL from a server base URL and a path produced by one of the routes::v1::* builders.

Use this from test/CLI sites that have a url::Url pointing at the API server and want the absolute URL for a single request. Internally this is just base.join(path); the helper exists so the (path-const, builder, joiner) trio reads as one chain.