pub fn sign(url: &str, secret: &[u8], ttl: Option<Duration>) -> StringExpand description
Sign url with secret, optionally with an expiry from “now”.
Returns the URL with ?signature=...&expires=... appended (or & if
the URL already has a query string).