Skip to content

Commit fc6ba22

Browse files
docs(upload): clarify implementation rules for upload test
2 parents c5ac5e1 + 0caef04 commit fc6ba22

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • site/content/docs/add-framework/test-profiles/h1

site/content/docs/add-framework/test-profiles/h1/upload.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ The Upload profile measures how efficiently a framework handles large request bo
1919
- **I/O handling efficiency** — how the framework manages sustained large transfers
2020
- **Connection overhead** — at 20 MB per request, connection setup/teardown is significant
2121

22+
## Implementation rules
23+
24+
The upload endpoint must actually read and process the request body. The returned byte count must be computed by reading the uploaded data, not inferred from request metadata.
25+
26+
- **Do not** return the value of the `Content-Length` header — this defeats the purpose of the test, which is to measure how efficiently the framework processes uploaded content.
27+
- Frameworks **may** use small read buffers to process the upload incrementally. Holding the entire payload in memory is allowed but not required.
28+
- The goal is to prove that the framework can efficiently compute a result over a large blob being sent to it.
29+
2230
## Expected response
2331

2432
```

0 commit comments

Comments
 (0)