caldav/internal/url

Values

pub fn ensure_trailing_slash(url: String) -> String

Ensures that the URL ends with a trailing slash.

pub fn join(base: String, path: String) -> String

Joins a base URL and a relative path without producing a double slash.

The base value is expected to already include the scheme and host, while path represents the resource path.

pub fn strip_trailing_slash(url: String) -> String

Removes a trailing slash without breaking the root path /.

Search Document