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
Copy file name to clipboardExpand all lines: _legacy/server/echo.md
+15-2Lines changed: 15 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -170,16 +170,29 @@ collect the full body.
170
170
In this case, we can't really generate a `Response` immediately. Instead, we
171
171
must wait for the full request body to be received.
172
172
173
-
We want to concatenate the request body, and map the result into our `reverse` function, and return the eventual result. We can make use of the `hyper::body::to_bytes` utility function to make this easy.
173
+
We want to concatenate the request body, and map the result into our `reverse`
174
+
function, and return the eventual result. We can make use of the
175
+
`hyper::body::to_bytes` utility function to make this easy.
176
+
177
+
> Note: You must always be careful not to buffer without a max bounds. We'll
0 commit comments