Tuesday, December 14, 2021

Http reqeust and response structure

 A http request has 3 parts-

1.Request line-The http command(Ex-get,post,put,delete)

2.Header variable-Request meta data(Ex-connection ,keep alive etc)

3.Message body-Content of the message(payload)


A http response has also 3 different areas-

1.Response line-Server protocol and status code

2.Header variable-response metadata(ex:content type-json,xml,size and length of the data etc)

3.Message body(list of customer as json/xml) 

No comments:

Post a Comment

Testing controller

------Controller------------- @RestController @RequestMapping("/items") public class ItemController {     private final ItemServic...