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

Clean code chapter 3(Robert C.martin)

  Summary: --------  1. Functions should hardly ever be 20 lines long.  2.Keep blocks (inside if, else, while, for, etc.) short.  Ideally, j...