HyperText is also included in the abbreviation, HTML, which stands for HyperText Markup Language. HTML documents contain tags that provide links to other HTML documents. It is a form of communication used by web browsers to create webpages. HTTP is a transfer protocol, or transfer agreement/code between computers that allow computers to receive and send HTML files. HTTP and HTML are thus inherently related! HTTP is simply a standard communication code (like any human language, including Korean and English) used by computers to send and receive HTML files. Without HTTP, we would only be able to share HTML files within our own local desktop or disk, which would be rather meaningless!
Requests
START LINE (made up of three parts)
1. HTTP Method - the three most commonly used are GET, POST, and DELETE
2. Status Code - the target URL
3. HTTP Version - the HTTP version that is being used
i.e. GET /login HTTP/1.1
HEADERS
Responses
START LINE (made up of three parts)
1. HTTP Version - the HTTP version that is being used
2. Status Code: the status code of the reponse (404, 200, 201, etc.)
3. Status Text: brief text message that explains the status of the request (Not Found, SUCCESS)
HTTP/1.1 200 SUCCESS
HEADERS
Contains meta data that further describes the request (i.e. information about the server)
BODY
Contains the main content/data of the response. Like requests, responses don't always hava bodies.