Hypertext Transfer Protocol (HTTP)
Learn about the Hypertext Transfer Protocol (HTTP) and its importance in APIs.
Introduction
The Hypertext Transfer Protocol (HTTP) is a
HTTP is based on the concepts of request and response, where one program (the client) requests another program (the server), and the server returns a response. The client usually makes requests in the form of HTTP commands, and the server responds with data in the form of documents. These commands are structured by different API architecture styles that we'll discuss in the coming chapters. Because it’s a driving force for APIs, HTTP is an essential protocol to understand.
As long as the request conforms to HTTP standards, the server will respond with the requested resources, regardless of the type of client.
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.