All books

Professional

Apps About Coach Log in Start reading

Computer Science · Glossary

What is Header?

Also known as: header (HTTP)

Definition 8.5 High School Computer Science · Chapter 8 — The Web: Clients, Servers and HTTP

A header is a line Name: value of an HTTP message that gives information about the message: the server’s name (Host), the type of the body (Content-Type), its length in bytes (Content-Length), a cookie, and so on.

One exchange. The request line names a method, a path and the version of HTTP; the status line gives the version, a status code and its meaning in words. The body follows the empty line, and Content-Length tells the client where it ends.
One exchange. The request line names a method, a path and the version of HTTP; the status line gives the version, a status code and its meaning in words. The body follows the empty line, and Content-Length tells the client where it ends.
Read in context →