DEV Community

Cover image for Understanding HTTP Request/Response Cycle
Calvin
Calvin

Posted on

Understanding HTTP Request/Response Cycle

There exist what may be considered as 3 main elements of a HTTP request:

📶 Request line
📶 Headers
📶 Body

http request/response cycle

The request line is made up of a HTTP method, the URI( path of the resource), and the HTTP version.

The headers are made up of metadata and components of information about the request being sent such as cookies and authentication tokens.

The body contains information that is being sent to the server ("payload"). Examples of information sent to the server may include form data.

Top comments (0)