REST API Best Practices : The Main Elements of an HTTP Request

Photo by Diane Picchiottino on Unsplash

An HTTP request consists of three main elements:

The request line, the headers and the message body.

In this article I will be examining each of these elements and all of the building blocks that they use. A well designed REST API needs to make proper use of all of these building blocks.

The Request Line

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Pavle Djuric

Pavle Djuric

Software developer. 3 x AWS certified. Writing mostly about Python, Golang, backend development and Cloud computing.