File tree Expand file tree Collapse file tree
docs/content/add-a-framework Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ` .
You can’t perform that action at this time.
0 commit comments