get raw body
This block is part of the http connection group and was last modified in core v15.0.0.
get raw body v15.0.0 Returns the request body exactly as received on the wire, as a string : the bytes an HMAC signature covers. Use this (never a re-serialized object) when verifying signature headers like X-Mssgs-Signature.
- connection required
httpconnection
- raw body
value
Outputs the request body exactly as received on the wire, as a string : use this for HMAC/signature verification, never a re-serialized object. When no wire bytes exist (simulation or function-level call) it falls back to the JSON serialization of the parsed body; emits nil when there is no body at all.
A typical wiring for get raw body: the value out pin feeds sha256.
Commonly used with
In production blueprints, this block is most often wired together with:
- sha256: this block feeds into it. HMAC-SHA256 of the value keyed with the secret, as lowercase hex — e.g. to verify a webhook's X-Mssgs-Signature: sha256=<hex> header against the raw request body.
Version history
Introduced in v15.0.0.
Back to
http connection Return to the main group to view all sub-groups Back to http Return to the group to view all blocks within this group 