pub fn sign(
message: &impl ComponentSource,
components: &[Component],
params: &SignatureParams,
label: &str,
signing_key: &SigningKey,
) -> Result<SignedSignature, HttpSigError>Expand description
Signs request over components, producing Signature-Input and
Signature field values under label.
ยงErrors
Returns HttpSigError::MissingComponent if a covered header is absent.