pub fn build_v2_certificate_header_value(
data_certificate: &[u8],
witness: &HashTree,
expr_path_b64: &str,
) -> StringExpand description
Builds the value portion of the IC-Certificate response header.
Returns the full header value string in the format:
certificate=:…:, tree=:…:, expr_path=:…:, version=2
Unlike add_v2_certificate_header, this function returns the header value as a String
rather than mutating an HttpResponse. The expr_path_b64 argument is expected to already
be a base64-encoded self-describing CBOR value (e.g. produced by cbor_encode_to_base64).