Summary

This document explains the Hypertext Transfer Protocol (HTTP), a protocol used for data transmission between clients and servers on the internet. It details common HTTP methods and their characteristics, such as idempotency and safety.

Full Transcript

✂ Hypertext transfer protocol (HTTP) HTTP is a method for encoding and transporting data between a client and a server. It is a request/response protocol: clients issue requests and servers issue responses with relevant content and completion status info about the request. HTTP is self- containe...

✂ Hypertext transfer protocol (HTTP) HTTP is a method for encoding and transporting data between a client and a server. It is a request/response protocol: clients issue requests and servers issue responses with relevant content and completion status info about the request. HTTP is self- contained, allowing requests and responses to flow through many intermediate routers and servers that perform load balancing, caching, encryption, and compression. A basic HTTP request consists of a verb (method) and a resource (endpoint). Below are common HTTP verbs: Verb Description Idempotent* Safe Cacheable GET Reads a resource Yes Yes Yes POST Creates a No No Yes if response resource or contains trigger a process freshness info that handles data PUT Creates or Yes No No replace a resource PATCH Partially updates No No Yes if response a resource contains freshness info DELETE Deletes a Yes No No resource *Can be called many times without different outcomes. HTTP is an application layer protocol relying on lower-level protocols such as TCP and ** ** ** UDP. ** Source(s) and further reading: HTTP

Use Quizgecko on...
Browser
Browser