pub fn format(uri: &str) -> Result<String, Error>Expand description
Build a Link header value advertising uri as the C2PA Manifest Store.
The target is percent-encoded by encode_target, so any input yields a
well-formed, injection-free header. Only an empty target is an error: there
is nothing to advertise.
Because encoding is applied, extract reads back the encoded form —
a b goes out as a%20b and comes back as a%20b. That is the URI, and it
is what a validator will fetch. Use format_strict when you would rather
be told that your input needed repairing.