diff options
author | Minteck ⭐ <nekostarfan@gmail.com> | 2021-11-07 17:29:22 +0100 |
---|---|---|
committer | Minteck ⭐ <nekostarfan@gmail.com> | 2021-11-07 17:29:22 +0100 |
commit | be7a71f503f676b0e3dcce389bd6ee91903c4aa4 (patch) | |
tree | b5c37e0f0f105b6d4cb51d20501b5af29cccb7b8 /DEMO.md | |
parent | e10f3704263a3deb29f31e64efb35f2fd21698da (diff) | |
download | bashweb-be7a71f503f676b0e3dcce389bd6ee91903c4aa4.tar.gz bashweb-be7a71f503f676b0e3dcce389bd6ee91903c4aa4.tar.bz2 bashweb-be7a71f503f676b0e3dcce389bd6ee91903c4aa4.zip |
Update 'DEMO.md'
Diffstat (limited to 'DEMO.md')
-rw-r--r-- | DEMO.md | 30 |
1 files changed, 29 insertions, 1 deletions
@@ -12,4 +12,32 @@ User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 Accept-Encoding: gzip, deflate Accept-Language: en-US,en;q=0.9,fr;q=0.8 -```
\ No newline at end of file +``` + +## HTTP/1.1 Response + +An HTTP <u>response</u> looks like this: +```http +HTTP/1.1 200 OK +Server: nginx +Date: Sun, 07 Nov 2021 16:25:17 GMT +Content-Type: text/html; charset=utf-8 +Content-Length: 14 +Connection: keep-alive +X-Frame-Options: SAMEORIGIN +X-XSS-Protection: 1; mode=block +Cache-Control: private, no-cache, no-store, must-revalidate +X-Content-Type-Options: nosniff +Pragma: no-cache +Expires: Sat, 01 Jan 2000 00:00:00 GMT +Referrer-Policy: no-referrer-when-downgrade + +The content goes here. +``` + +* The empty line is important as it marks the end of the headers and the start of the actual content. + +The following headers are especially important: +* `Content-Type` marks the type of content and what the browser needs to do with it. +* `Server` is the name of the server software. We'll probably put `Bashweb/1.0 <https://source.minteck.org/minteck/bashweb>` in here. +* `Content-Length` is not required but recommended, especially with file downloads.
\ No newline at end of file |