Skip to content

Commit 297af21

Browse files
committed
Add Hypertext transfer protocol (HTTP) section
1 parent 8175622 commit 297af21

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,3 +1451,24 @@ If queues start to grow significantly, the queue size can become larger than mem
14511451
<br/>
14521452
<i><a href=http://www.escotal.com/osilayer.html>Source: OSI 7 layer model</a></i>
14531453
</p>
1454+
1455+
### Hypertext transfer protocol (HTTP)
1456+
1457+
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.
1458+
1459+
A basic HTTP request consists of a verb (method) and a resource (endpoint). Below are common HTTP verbs:
1460+
1461+
| Verb | Description | Idempotent* | Safe | Cacheable |
1462+
|---|---|---|---|---|
1463+
| GET | Reads a resource | Yes | Yes | Yes |
1464+
| POST | Creates a resource or trigger a process that handles data | No | No | Yes if response contains freshness info |
1465+
| PUT | Creates or replace a resource | Yes | No | No |
1466+
| PATCH | Partially updates a resource | No | No | Yes if response contains freshness info |
1467+
| DELETE | Deletes a resource | Yes | No | No |
1468+
1469+
*Can be called many times without different outcomes.
1470+
1471+
HTTP is an application layer protocol relying on lower-level protocols such as **TCP** and **UDP**.
1472+
1473+
* [HTTP](https://www.nginx.com/resources/glossary/http/)
1474+
* [README](https://www.quora.com/What-is-the-difference-between-HTTP-protocol-and-TCP-protocol)

0 commit comments

Comments
 (0)