The response says which slice was sent.

highlighted = computed this step

The response status is partial content

The status row says the response carries only a selected part.

partial content\text{partial content}
Content-Range responseThe selected slice, Content-Range header, body bytes, and length checks are recomputed from pinned bytes.Content-Range response - 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

Content-Range names the slice and total

The Content-Range row says the selected span sits inside a full resource of 8 bytes.

total bytes=8\text{total bytes}=8
Content-Range responseThe selected slice, Content-Range header, body bytes, and length checks are recomputed from pinned bytes.Content-Range response - 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

Content-Length counts the sent body

The Content-Length row says 4, matching the selected body length.

Content-Length=4\text{Content-Length}=4
Content-Range responseThe selected slice, Content-Range header, body bytes, and length checks are recomputed from pinned bytes.Content-Range response - 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

The response header tells both where the slice came from and how many bytes are sent.

Content-Range checked\text{Content-Range checked}
Content-Range responseThe selected slice, Content-Range header, body bytes, and length checks are recomputed from pinned bytes.Content-Range response - 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