Visual RFC.
ALL RFCs / RFC 9530
Read the RFC ↗
RFC 9530 / HTTP INTEGRITY

Separate coding from framing

03

Content coding changes representation bytes. Transfer framing carries those bytes but is not part of the digest input.

RFC 9530 · § 6.5EXAMPLE
4 / 4
Separate coding from framingContent coding changes representation bytes. Transfer framing carries those bytes but is not part of the digest input. A sender can stream bytes and send an Integrity field in a trailer. This validating application waits for that value before trusting the content; trailers can be dropped by intermediaries.Coding changes bytes; framing does notSenderValidating appStream content bytesFinal digest in trailerWait for validationEager use would precede the checkA trailer might be dropped en routeRFC9530 · chapter3 · state4 · published/illustrative values
04
Wait for a late digest

A sender can stream bytes and send an Integrity field in a trailer. This validating application waits for that value before trusting the content; trailers can be dropped by intermediaries.

Source for this drawing: RFC 9530 · Read RFC section 6.5 ↗

Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

A message needs an address.

Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

KEY POINT

Content-Digest and Repr-Digest depend on representation metadata such as Content-Encoding and Content-Type. For a full gzip-coded response, hash the coded bytes rather than silently decompressing first.

  • Content-Digest and Repr-Digest depend on representation metadata such as Content-Encoding and Content-Type. For a full gzip-coded response, hash the coded bytes rather than silently decompressing first.
  • HTTP/1.1 chunk sizes, delimiters and trailer framing do not enter the content or selected-representation hash. Removing transfer framing is different from removing content coding.
  • Even the same Content-Encoding value can produce different encoded bytes. Retain the actual coded data when it is needed for later validation; the coding name alone is insufficient.
DETAILS

Gzip is a content-coding format. These are bounded coding/framing examples, not an HTTP chunk parser. Reported erratum 8890 concerns the RFC’s Brotli examples; these drawings use independently verified gzip bytes instead. Verified editorial errata 8158/8273 are distinguished in author evidence.

Read the RFC section ↗

All chapters in RFC 9530

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗