Question - What constitutes an HTTP request's fundamental components?
Answer -
An HTTP request consists of five main components:
- HTTP methods: A set of request methods used to accomplish a specific action on a resource (GET, PUT, POST, DELETE)
- URI (Uniform Resource Identifier): Identifies a resource.
- Version of HTTP (example- HTTP v1.1)
- Content-type: application/json, Content-Length: 511) Request Headers
- Payload: This is a Request Body that contains the message content.