mirror of
https://github.com/rwf2/Rocket.git
synced 2024-12-26 12:22:36 +00:00
2465e2f136
In summary, this commit modifies 'Responder' so that: * ..it is no longer 'async'. To accommodate, the 'sized_body' methods in 'Response' and 'ResponseBuilder' are no longer 'async' and accept an optional size directly. If none is supplied, Rocket will attempt to compute the size, by seeking, before writing out the response. The 'Body' type was also changed to differentiate between its sized 'Seek' and chunked body variants. * ..'&Request' gains a lifetime: 'r, and the returned 'Response' is parameterized by a new 'o: 'r. This allows responders to return references from the request or those that live longer. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
Rocket.toml |