lookup> Host

Host

provides the host and port information from the target URI, enabling the origin server to distinguish among resources while servicing requests for multiple host names on a single IP address.

请求头RFC7230#5.4
NameHost
Type请求头
SpecificationRFC7230#5.4

provides the host and port information from the target URI, enabling the origin server to distinguish among resources while servicing requests for multiple host names on a single IP address.

Host: example.com

RFC7230#5.4

What does the Host header do?

provides the host and port information from the target URI, enabling the origin server to distinguish among resources while servicing requests for multiple host names on a single IP address.

Is Host a request or response header?

It is classified as a request header and can appear in requests or responses depending on context.

Related status codes