What are the components of an HTTP request?

An HTTP request have five components. These are:

  1. Action showing HTTP method like GET, PUT, POST, DELETE.
  2. Uniform Resource Identifier (URI): URI is the identifier for the resource on the server.
  3. HTTP version: Indicate the HTTP version like- HTTP V1.1.
  4. Request Header: Request Header carries metadata for the HTTP request message. Metadata could be a client type, format supported by the client, format of a message body, cache setting etc.
  5. Request Body: Resource body indicates message content or resource representation.