HTTP Responses and Headers
The HTTP response consists of:
- A response code,
- Response headers containing meta-information, and
- The requested resource.
Response headers are name: value pairs indicating:
- Content type
- Content length
- Timestamp, etc.
Servlets allow all this information to be encapsulated in Java objects.