Headers
There are four types of HTTP headers:
General headers indicate general information such as the date, or whether the connection should be maintained. They are used by both clients and servers.
Request headers are used only for client requests. They convey the client’s configuration and desired document format to the server.
Response headers are used only in server responses. They describe the server’s configuration and information about the requested URL.
Entity headers describe the document format of the data being sent between client and server. Although Entity headers are most commonly used by the server when returning a requested document, they are also used by clients when using the POST or PUT methods.
Headers from all four categories may be specified in any order.
Header names are case-insensitive, so the
Content-type header is also frequently written as
Content-type.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access