Rocket/core/codegen/tests
Sergio Benitez 4c6562cd29 Drop 'Data' after sending a response, not before.
This allows responses to be sent to the client even when data is only
partially read, significantly improving the experience for the client
from one with a "connection closed" error to one with a proper response.
The consequence is a lifetime in 'Data'.

Though other non-lifetime-introducing solutions exist, the introduction
of a lifetime to 'Data' is a longstanding desire as it prevents
smuggling 'Data' into a longer-lived context. Use of 'Data' in that
context was unspecified with various runtime consequences. The addition
of a lifetime bound by the request prevents this error statically.

In summary, the changes are:
  * Clients receive responses even when data isn't fully read.
  * 'Data' becomes 'Data<'r>'. 'FromData' changes accordingly.
  * Route 'Outcome's are strictly tied to the request lifetime.

Tangentially, the invalid length form field validation error message has
improved to format length in byte units if it exceeds 1024.
2021-06-08 13:26:16 -07:00
..
ui-fail Drop 'Data' after sending a response, not before. 2021-06-08 13:26:16 -07:00
ui-fail-nightly Drop 'Data' after sending a response, not before. 2021-06-08 13:26:16 -07:00
ui-fail-stable Drop 'Data' after sending a response, not before. 2021-06-08 13:26:16 -07:00
async-entry.rs Introduce statically-enforced 'Rocket' phasing. 2021-04-13 19:26:45 -07:00
async-routes.rs Remove use of stable 'proc_macro_hygiene' feature. 2020-07-11 10:48:08 -07:00
catcher.rs Add internal '__typed_stream' proc-macro. 2021-06-01 11:43:51 -07:00
expansion.rs Retrieve managed state via a borrow: '&State<T>'. 2021-05-11 08:58:16 -05:00
from_form.rs Fix typos throughout codebase. 2021-06-07 19:31:21 -07:00
from_form_field.rs Allow several 'field' attributes in all derives. 2021-04-07 23:09:05 -07:00
responder.rs Allow custom generic bounds in 'Responder' derive. 2021-05-26 02:26:11 -07:00
route-data.rs Drop 'Data' after sending a response, not before. 2021-06-08 13:26:16 -07:00
route-format.rs Impl 'IntoCollection' for '[T; N]'. 2021-05-22 11:01:00 -07:00
route-ranking.rs Rename 'rocket::ignite()' to 'rocket::build()'. 2021-04-08 01:07:52 -07:00
route-raw.rs Overhaul URI types, parsers, 'uri!' macro. 2021-05-19 18:47:11 -07:00
route.rs Drop 'Data' after sending a response, not before. 2021-06-08 13:26:16 -07:00
segment-ignore.rs Rename 'rocket::ignite()' to 'rocket::build()'. 2021-04-08 01:07:52 -07:00
typed-uris.rs Overhaul URI types, parsers, 'uri!' macro. 2021-05-19 18:47:11 -07:00
ui-fail.rs Implement codegen testing on stable. 2020-07-21 15:11:07 -07:00
uri_display.rs Overhaul URI types, parsers, 'uri!' macro. 2021-05-19 18:47:11 -07:00