The matching variant becomes the response type.

highlighted = computed this step

The selected Content-Type is JSON

The response Content-Type row is application/json.

Content-Type=application/json\text{Content-Type}=\text{application/json}
Selected JSON typeThe selected response and body-length check are recomputed from pinned request and response bytes.Selected JSON type - GET /item selects application/json, body 14 bytessectionnamevaluecheckrequest linemethodGETparsedrequest linepath/itemparsedrequest lineversionHTTP/1.1parsedheaderHostapi.exampleexactheaderAcceptapplication/jsonrequested typevariant 1typetext/htmlcandidatevariant 1body displayHTML paragraph catsafe display formvariant 1body hex3c703e6361743c2f703epinned bytesvariant 1body bytes10countedvariant 1matchnoAccept comparevariant 2typeapplication/jsoncandidatevariant 2body displayJSON name catsafe display formvariant 2body hex7b226e616d65223a22636174227dpinned bytesvariant 2body bytes14countedvariant 2matchyesAccept comparestatusversionHTTP/1.1parsedstatusstatus200 OKokheaderContent-Typeapplication/jsonselectedheaderContent-Length14declared bytesbodydisplay wordsJSON name catsafe display formbodyexact hex7b226e616d65223a22636174227dpinned bytescheckAcceptapplication/jsonrequestcheckselected typeapplication/jsonresponsecheckbody bytes14sentcheckmatchyessame type

It matches Accept

The check row compares the request Accept value with the selected Content-Type.

Accept matches selected type\text{Accept matches selected type}
Selected JSON typeThe selected response and body-length check are recomputed from pinned request and response bytes.Selected JSON type - GET /item selects application/json, body 14 bytessectionnamevaluecheckrequest linemethodGETparsedrequest linepath/itemparsedrequest lineversionHTTP/1.1parsedheaderHostapi.exampleexactheaderAcceptapplication/jsonrequested typevariant 1typetext/htmlcandidatevariant 1body displayHTML paragraph catsafe display formvariant 1body hex3c703e6361743c2f703epinned bytesvariant 1body bytes10countedvariant 1matchnoAccept comparevariant 2typeapplication/jsoncandidatevariant 2body displayJSON name catsafe display formvariant 2body hex7b226e616d65223a22636174227dpinned bytesvariant 2body bytes14countedvariant 2matchyesAccept comparestatusversionHTTP/1.1parsedstatusstatus200 OKokheaderContent-Typeapplication/jsonselectedheaderContent-Length14declared bytesbodydisplay wordsJSON name catsafe display formbodyexact hex7b226e616d65223a22636174227dpinned bytescheckAcceptapplication/jsonrequestcheckselected typeapplication/jsonresponsecheckbody bytes14sentcheckmatchyessame type

The HTML variant is left behind

The text/html candidate did not match this pinned Accept header.

text/html not selected\text{text/html not selected}
Selected JSON typeThe selected response and body-length check are recomputed from pinned request and response bytes.Selected JSON type - GET /item selects application/json, body 14 bytessectionnamevaluecheckrequest linemethodGETparsedrequest linepath/itemparsedrequest lineversionHTTP/1.1parsedheaderHostapi.exampleexactheaderAcceptapplication/jsonrequested typevariant 1typetext/htmlcandidatevariant 1body displayHTML paragraph catsafe display formvariant 1body hex3c703e6361743c2f703epinned bytesvariant 1body bytes10countedvariant 1matchnoAccept comparevariant 2typeapplication/jsoncandidatevariant 2body displayJSON name catsafe display formvariant 2body hex7b226e616d65223a22636174227dpinned bytesvariant 2body bytes14countedvariant 2matchyesAccept comparestatusversionHTTP/1.1parsedstatusstatus200 OKokheaderContent-Typeapplication/jsonselectedheaderContent-Length14declared bytesbodydisplay wordsJSON name catsafe display formbodyexact hex7b226e616d65223a22636174227dpinned bytescheckAcceptapplication/jsonrequestcheckselected typeapplication/jsonresponsecheckbody bytes14sentcheckmatchyessame type

Summary

The response shape follows the exact Accept value in the toy request.

JSON selected\text{JSON selected}
Selected JSON typeThe selected response and body-length check are recomputed from pinned request and response bytes.Selected JSON type - GET /item selects application/json, body 14 bytessectionnamevaluecheckrequest linemethodGETparsedrequest linepath/itemparsedrequest lineversionHTTP/1.1parsedheaderHostapi.exampleexactheaderAcceptapplication/jsonrequested typevariant 1typetext/htmlcandidatevariant 1body displayHTML paragraph catsafe display formvariant 1body hex3c703e6361743c2f703epinned bytesvariant 1body bytes10countedvariant 1matchnoAccept comparevariant 2typeapplication/jsoncandidatevariant 2body displayJSON name catsafe display formvariant 2body hex7b226e616d65223a22636174227dpinned bytesvariant 2body bytes14countedvariant 2matchyesAccept comparestatusversionHTTP/1.1parsedstatusstatus200 OKokheaderContent-Typeapplication/jsonselectedheaderContent-Length14declared bytesbodydisplay wordsJSON name catsafe display formbodyexact hex7b226e616d65223a22636174227dpinned bytescheckAcceptapplication/jsonrequestcheckselected typeapplication/jsonresponsecheckbody bytes14sentcheckmatchyessame type