The body text has exact bytes.

highlighted = computed this step

The body text is hello

The body row is read after the blank-line boundary.

body=hello\text{body}=\text{hello}
Body bytesThe body bytes and Content-Length check are recomputed from pinned response bytes.Body bytes - 200 OK body hello is 5 bytes, Content-Length 5sectionnamevaluecheckrequest linemethodGETparsedrequest linepath/hello.txtparsedrequest lineversionHTTP/1.1parsedheaderHoststatic.exampleexactheaderAccepttext/plainexactstatusversionHTTP/1.1parsedstatusstatus200 OKokheaderContent-Typetext/plainexactheaderContent-Length5declared bytesbodytexthelloafter blank linebodyhex68656c6c6fASCII bytesbodybyte length5countedcheckContent-Length5declaredcheckbody bytes5recomputedcheckmatchyessame number

The body hex is exact

The hex row shows the ASCII bytes for hello.

body hex parsed\text{body hex parsed}
Body bytesThe body bytes and Content-Length check are recomputed from pinned response bytes.Body bytes - 200 OK body hello is 5 bytes, Content-Length 5sectionnamevaluecheckrequest linemethodGETparsedrequest linepath/hello.txtparsedrequest lineversionHTTP/1.1parsedheaderHoststatic.exampleexactheaderAccepttext/plainexactstatusversionHTTP/1.1parsedstatusstatus200 OKokheaderContent-Typetext/plainexactheaderContent-Length5declared bytesbodytexthelloafter blank linebodyhex68656c6c6fASCII bytesbodybyte length5countedcheckContent-Length5declaredcheckbody bytes5recomputedcheckmatchyessame number

The body has five bytes

Counting the parsed body bytes gives 5.

body bytes=5\text{body bytes}=5
Body bytesThe body bytes and Content-Length check are recomputed from pinned response bytes.Body bytes - 200 OK body hello is 5 bytes, Content-Length 5sectionnamevaluecheckrequest linemethodGETparsedrequest linepath/hello.txtparsedrequest lineversionHTTP/1.1parsedheaderHoststatic.exampleexactheaderAccepttext/plainexactstatusversionHTTP/1.1parsedstatusstatus200 OKokheaderContent-Typetext/plainexactheaderContent-Length5declared bytesbodytexthelloafter blank linebodyhex68656c6c6fASCII bytesbodybyte length5countedcheckContent-Length5declaredcheckbody bytes5recomputedcheckmatchyessame number

Summary

The body length comes from the bytes after the headers, not from the request.

body bytes counted\text{body bytes counted}
Body bytesThe body bytes and Content-Length check are recomputed from pinned response bytes.Body bytes - 200 OK body hello is 5 bytes, Content-Length 5sectionnamevaluecheckrequest linemethodGETparsedrequest linepath/hello.txtparsedrequest lineversionHTTP/1.1parsedheaderHoststatic.exampleexactheaderAccepttext/plainexactstatusversionHTTP/1.1parsedstatusstatus200 OKokheaderContent-Typetext/plainexactheaderContent-Length5declared bytesbodytexthelloafter blank linebodyhex68656c6c6fASCII bytesbodybyte length5countedcheckContent-Length5declaredcheckbody bytes5recomputedcheckmatchyessame number