Skip to main content

Module content_id

Module content_id 

Source
Expand description

Content-id helpers that normalize and hash gateway request expressions.

Constants§

VOLATILE_REQUEST_FIELDS
Field names stripped from a request before computing its content id.

Functions§

content_id_for_expr
Computes the content id of an arbitrary expression by encoding it to a binary frame and hashing the resulting bytes.
normalize_request_expr
Returns a copy of a request map with VOLATILE_REQUEST_FIELDS removed.
request_content_id
Computes the content id of a GatewayRequest, ignoring volatile fields.
request_expr_content_id
Computes the content id of a request expression after normalizing away its volatile fields.