Google News
logo
Rest API - Interview Questions
What are the core components of the HTTP request and HTTP response in Rest API?
The core components under HTTP Request are :
 
* Verb : Includes methods like GET, PUT, POST, etc.
* Uniform Resource Identifier for identifying the resources available on the server.
* HTTP Version for specifying the HTTP version.
* HTTP Request header for containing the information about the data.
* HTTP Request body that contains the representation of the resources in use.

The core components under HTTP Response are:
 
* Request Code : This contains various codes that determine the status of the server response.
* HTTP Version for specifying the HTTP version.
* HTTP Response header for containing the information about the data.
* HTTP Response body that contains the representation of the resources in use.
Advertisement