HTTPRequest
An HTTP request is a message sent by a client to an origin server as part of the Hypertext Transfer Protocol. It is used to retrieve resources, submit data, or instruct a server to perform an action. Requests are typically initiated by web browsers, apps, or command-line tools and travel over TCP, with TLS providing encryption for HTTPS.
In raw form, an HTTP request consists of a request line, a set of headers, an empty
Headers convey metadata such as Host, User-Agent, Accept, and Content-Type. The Host header is mandatory in HTTP/1.1.
Common methods include GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, TRACE, and CONNECT. GET and HEAD are
Servers respond with status codes indicating success or failure, and may also include headers and a response