HTTP essentials
HTTP stands for Hypertext Transfer Protocol, and it is used for exchanging documents (referred to as hypertext) over the internet. A hypertext is a text with links (hyperlinks) to other documents. HTTP provides a set of verbs for specifying the operations that we need to perform on a resource, and a set of response codes that the server can return to the client.
The following HTTP verbs (methods) are generally used with REST APIs: GET, for retrieving data; HEAD, for getting the header (similar to GET, but without the body); POST, for non-idempotent requests (for example, creating an ID); PUT, for idempotent requests (for example, override updates); PATCH, for partial updates; and DELETE, for deleting resources. OPTIONS is ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access