Skip to main content

enrich_context_from_envelope

Function enrich_context_from_envelope 

Source
pub fn enrich_context_from_envelope(
    ctx: CratestackContext,
    extensions: &Extensions,
) -> CratestackContext
Expand description

Record the VerifiedSigner the envelope layer left in extensions, if any, on ctx. extensions is the request’s (generated handlers pass ClientIpContext::extensions, a clone of them).

Extensions are in-process only, so nothing on the wire can put one there: a signer is present only when an in-process layer (the envelope layer, or one the application trusts as much) inserted it.