Header lines add exact name and value pairs after the request line.

highlighted = computed this step

Headers are name and value lines

After the request line, each header line has a name, a colon, and a value.

name: value\text{name: value}
Header linesThe HTTP request and virtual-host rows are recomputed from pinned bytes.Header lines - Host net.example selects net-docssectionnamevaluecheckrequest linemethodGETparsedrequest linepath/booksparsedrequest lineversionHTTP/1.1parsedheaderHostnet.exampleexactheaderAccepttext/htmlexactvirtual hostHostnet.examplecompare rowsroutenet.examplenet-docsyes / yes / selectrouteshop.exampleshopno / no / skiproutedefaultfallbackyes / no / not reached

One header is Host

The Host header value is net.example.

Host=net.example\text{Host}=\text{net.example}
Header linesThe HTTP request and virtual-host rows are recomputed from pinned bytes.Header lines - Host net.example selects net-docssectionnamevaluecheckrequest linemethodGETparsedrequest linepath/booksparsedrequest lineversionHTTP/1.1parsedheaderHostnet.exampleexactheaderAccepttext/htmlexactvirtual hostHostnet.examplecompare rowsroutenet.examplenet-docsyes / yes / selectrouteshop.exampleshopno / no / skiproutedefaultfallbackyes / no / not reached

Another header is Accept

The Accept header value is text/html. It asks for a response type, not a virtual host.

Accept=text/html\text{Accept}=\text{text/html}
Header linesThe HTTP request and virtual-host rows are recomputed from pinned bytes.Header lines - Host net.example selects net-docssectionnamevaluecheckrequest linemethodGETparsedrequest linepath/booksparsedrequest lineversionHTTP/1.1parsedheaderHostnet.exampleexactheaderAccepttext/htmlexactvirtual hostHostnet.examplecompare rowsroutenet.examplenet-docsyes / yes / selectrouteshop.exampleshopno / no / skiproutedefaultfallbackyes / no / not reached

Summary

Headers add named details after the request line. The Host header is the one used for this routing choice.

Host drives this table\text{Host drives this table}
Header linesThe HTTP request and virtual-host rows are recomputed from pinned bytes.Header lines - Host net.example selects net-docssectionnamevaluecheckrequest linemethodGETparsedrequest linepath/booksparsedrequest lineversionHTTP/1.1parsedheaderHostnet.exampleexactheaderAccepttext/htmlexactvirtual hostHostnet.examplecompare rowsroutenet.examplenet-docsyes / yes / selectrouteshop.exampleshopno / no / skiproutedefaultfallbackyes / no / not reached