Skip to content

Commit 49150ce

Browse files
committed
Improve Add a Framework section
1 parent 5202d1e commit 49150ce

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/content/add-a-framework/_index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ Your server must listen on **port 8080** and implement three endpoints:
1212
| Endpoint | Method | Behavior |
1313
|----------|--------|----------|
1414
| `/` | `GET` | Return `200 OK`. This is the baseline reachability check. |
15+
| `/` | `HEAD` | Return `200 OK` with no body. Used by smuggling tests that check body handling on HEAD requests. |
1516
| `/` | `POST` | Read the full request body and return it in the response. Used by body handling and smuggling tests. |
17+
| `/` | `OPTIONS` | Return `200 OK`. Used by smuggling tests that check body handling on OPTIONS requests. |
1618
| `/echo` | `POST` | Return all received request headers in the response body, one per line as `Name: Value`. Used by normalization tests. |
1719

1820
### Why `/echo`?
@@ -108,3 +110,4 @@ The key parts:
108110
- **`/echo`** — echoes all received headers back as plain text.
109111
- **`POST /`** — reads and returns the request body (needed for body and smuggling tests).
110112
- **`GET /`** (catch-all) — returns `"OK"` with `200`.
113+
- **`HEAD /`** and **`OPTIONS /`** — handled by the catch-all; return `200` so smuggling tests can evaluate body handling instead of getting `405`.

0 commit comments

Comments
 (0)