Skip to main content

encode_namespace_call_id

Function encode_namespace_call_id 

Source
pub fn encode_namespace_call_id(
    raw: &str,
    namespace: &str,
) -> Result<String, NamespaceIdSmuggleError>
Expand description

Encodes a namespace into a call id as <rawId>__ns__<base64url(namespace)>. Idempotent: an already-encoded id is returned unchanged. Collision-proof: a raw id that already contains the marker is refused instead of producing an ambiguous value.