The toy Range example keeps its boundary narrow.

highlighted = computed this step

What this toy model checks

The trust boundary parses one GET request, one pinned resource, one Range span, and one partial response.

recompute range slice\text{recompute range slice}
Range honesty boundaryThe selected slice, Content-Range header, body bytes, and length checks are recomputed from pinned bytes.Range honesty boundary - GET /file.txt bytes 2-5 -> cdef (4 bytes)sectionnamevaluecheckrequest linemethodGETparsedrequest linepath/file.txtparsedrequest lineversionHTTP/1.1parsedheaderHoststatic.exampleexactheaderRangebytes=2-5requested sliceresourcedisplayabcdefghsafe display formresourceexact hex6162636465666768pinned bytesresourcebyte length8countedrangestart2inclusiverangeend5inclusiverangeoffsets2,3,4,5selectedslicedisplayc d e fsafe display formsliceexact hex63646566pinned bytesslicebyte length4countedstatusversionHTTP/1.1parsedstatusstatus206 Partial Contentpartial contentheaderContent-Rangebytes 2-5/8slice over totalheaderContent-Length4declared bytesbodydisplaycdefsafe display formbodyexact hex63646566pinned bytescheckrangebytes 2-5requestcheckcovered bytes4inclusive countchecktotal length8Content-RangecheckContent-Length4selected bodycheckmatchyesall counts agree

Honesty boundary

NOTE: toy HTTP Range response only; not multiple ranges, suffix ranges, unsatisfied ranges, cache validators, compression, streaming, chunked transfer, content encoding, media seeking, authorization, proxies, HTTP/2 or HTTP/3, frameworks, or production server config.

toy Range only\text{toy Range only}
Range honesty boundaryThe selected slice, Content-Range header, body bytes, and length checks are recomputed from pinned bytes.Range honesty boundary - GET /file.txt bytes 2-5 -> cdef (4 bytes)sectionnamevaluecheckrequest linemethodGETparsedrequest linepath/file.txtparsedrequest lineversionHTTP/1.1parsedheaderHoststatic.exampleexactheaderRangebytes=2-5requested sliceresourcedisplayabcdefghsafe display formresourceexact hex6162636465666768pinned bytesresourcebyte length8countedrangestart2inclusiverangeend5inclusiverangeoffsets2,3,4,5selectedslicedisplayc d e fsafe display formsliceexact hex63646566pinned bytesslicebyte length4countedstatusversionHTTP/1.1parsedstatusstatus206 Partial Contentpartial contentheaderContent-Rangebytes 2-5/8slice over totalheaderContent-Length4declared bytesbodydisplaycdefsafe display formbodyexact hex63646566pinned bytescheckrangebytes 2-5requestcheckcovered bytes4inclusive countchecktotal length8Content-RangecheckContent-Length4selected bodycheckmatchyesall counts agree

No client compute

The page shows already validated rows. It does not slice bytes in browser code.

static validated rows\text{static validated rows}
Range honesty boundaryThe selected slice, Content-Range header, body bytes, and length checks are recomputed from pinned bytes.Range honesty boundary - GET /file.txt bytes 2-5 -> cdef (4 bytes)sectionnamevaluecheckrequest linemethodGETparsedrequest linepath/file.txtparsedrequest lineversionHTTP/1.1parsedheaderHoststatic.exampleexactheaderRangebytes=2-5requested sliceresourcedisplayabcdefghsafe display formresourceexact hex6162636465666768pinned bytesresourcebyte length8countedrangestart2inclusiverangeend5inclusiverangeoffsets2,3,4,5selectedslicedisplayc d e fsafe display formsliceexact hex63646566pinned bytesslicebyte length4countedstatusversionHTTP/1.1parsedstatusstatus206 Partial Contentpartial contentheaderContent-Rangebytes 2-5/8slice over totalheaderContent-Length4declared bytesbodydisplaycdefsafe display formbodyexact hex63646566pinned bytescheckrangebytes 2-5requestcheckcovered bytes4inclusive countchecktotal length8Content-RangecheckContent-Length4selected bodycheckmatchyesall counts agree

Summary

A Range header can ask for exact byte positions, and the response can carry only those bytes.

Range picks bytes\text{Range picks bytes}
Range honesty boundaryThe selected slice, Content-Range header, body bytes, and length checks are recomputed from pinned bytes.Range honesty boundary - GET /file.txt bytes 2-5 -> cdef (4 bytes)sectionnamevaluecheckrequest linemethodGETparsedrequest linepath/file.txtparsedrequest lineversionHTTP/1.1parsedheaderHoststatic.exampleexactheaderRangebytes=2-5requested sliceresourcedisplayabcdefghsafe display formresourceexact hex6162636465666768pinned bytesresourcebyte length8countedrangestart2inclusiverangeend5inclusiverangeoffsets2,3,4,5selectedslicedisplayc d e fsafe display formsliceexact hex63646566pinned bytesslicebyte length4countedstatusversionHTTP/1.1parsedstatusstatus206 Partial Contentpartial contentheaderContent-Rangebytes 2-5/8slice over totalheaderContent-Length4declared bytesbodydisplaycdefsafe display formbodyexact hex63646566pinned bytescheckrangebytes 2-5requestcheckcovered bytes4inclusive countchecktotal length8Content-RangecheckContent-Length4selected bodycheckmatchyesall counts agree