add http
This commit is contained in:
parent
885c7132de
commit
27fe6bd01b
1 changed files with 87 additions and 0 deletions
87
http/index.md
Normal file
87
http/index.md
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
---
|
||||
title: The ultimate HTTP talk
|
||||
description: An example slide deck created by Marp CLI
|
||||
author: Yuki Hattori
|
||||
keywords: marp,marp-cli,slide
|
||||
url: https://marp.app/
|
||||
image: https://marp.app/og-image.jpg
|
||||
---
|
||||
|
||||
# HYPER HYPER!
|
||||
|
||||
## The ultimate HTTP talk
|
||||
|
||||
---
|
||||
|
||||
# Headers
|
||||
|
||||
- X means unofficial
|
||||
- Request/Response
|
||||
|
||||
---
|
||||
|
||||
# Request Headers
|
||||
|
||||
---
|
||||
|
||||
# Cookie Header
|
||||
|
||||
---
|
||||
|
||||
# Forwarded Header
|
||||
|
||||
- Replacement for `X-Forwarded-For`, `X-Forwarded-Host` and `X-Forwarded-Proto`
|
||||
- `Forwarded: by=<identifier>;for=<identifier>;host=<host>;proto=<http|https>`
|
||||
- IPv6 addresses need double quotes and brackets
|
||||
|
||||
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Forwarded
|
||||
|
||||
---
|
||||
|
||||
# Host Header
|
||||
|
||||
- `Host: <host>:<port>`
|
||||
|
||||
---
|
||||
|
||||
# Referer Header
|
||||
|
||||
- This is how they make money
|
||||
|
||||
---
|
||||
|
||||
# Upgrade (HTTP/1.1)
|
||||
|
||||
- `Upgrade: <protocol>[/<protocol_version>]`
|
||||
- Upgrade connection to different HTTP version or Websocket
|
||||
|
||||
---
|
||||
|
||||
# User-Agent Header
|
||||
|
||||
- `User-Agent: <product> / <product-version> <comment>`
|
||||
- `Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0`
|
||||
|
||||
---
|
||||
|
||||
# Via Header
|
||||
|
||||
- `Via: [<protocol-name>/]<protocol-version> <host>[:<port>]`
|
||||
- `Via: [<protocol-name>/]<protocol-version> <pseudonym>`
|
||||
|
||||
---
|
||||
|
||||
# Response Headers
|
||||
|
||||
---
|
||||
|
||||
# ETag Header
|
||||
|
||||
- `ETag: W/"<etag_value>"`
|
||||
- `ETag: "<etag_value>"`
|
||||
|
||||
---
|
||||
|
||||
# todo
|
||||
|
||||
-
|
||||
Loading…
Reference in a new issue