fix client disconnection

This commit is contained in:
2024-11-26 17:16:04 +01:00
parent 718dbd50c0
commit 6cf2d5f198
13 changed files with 819 additions and 76 deletions

View File

@@ -1,4 +1,5 @@
# HTTP Request
This is an example of a basic HTTP request made from the browser:
```bash
@@ -10,12 +11,16 @@ Accept-Encoding: gzip, deflate
Connection: Keep-Alive
```
> Thanks tutorialspoint
The first line is a *request line*. It has:
- Method (GET, POST, HEAD, ...)
- Location (the request resource, file)
- HTTP version
# HTTP Response
```bash
HTTP/1.1 200 OK\r\n
Content-Type: text/html\r\n