You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6882f6d
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/1.guide/11.body-limit.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,8 @@ Returns a request whose body is size-limited. A request without a body is return
31
31
32
32
Because it wraps rather than rebuilds, the returned value is the **same type** as the input and keeps its identity: a [`ServerRequest`](/guide/handler#extended-request-serverrequest) stays a `ServerRequest`, with its augmentation (`runtime`, `waitUntil`, `ip`, `context`, …) intact.
33
33
34
+
On the Node adapter the [`req._request`](/guide/node#noderequest) escape hatch is served over the same size-limited stream, so unwrapping the request — `req._request`, or `new Request(req)` after `patchGlobalRequest()` — cannot reach the raw body and bypass the limit.
0 commit comments