Rocket/core/codegen/tests/ui-fail
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
..
async-entry.rs Introduce statically-enforced 'Rocket' phasing. 2021-04-13 19:26:45 -07:00
bad-ignored-segments.rs Add tests for ignored parameters '<_>'. 2020-10-30 00:47:41 -07:00
catch.rs Improve diagnostics, especially on stable. 2020-07-21 15:31:42 -07:00
catch_type_errors.rs Improve diagnostics, especially on stable. 2020-07-21 15:31:42 -07:00
catchers.rs Improve diagnostics, especially on stable. 2020-07-21 15:31:42 -07:00
from_form.rs Fix, finish 'FromForm' derive field defaults. 2021-06-03 00:05:02 -07:00
from_form_field.rs Allow several 'field' attributes in all derives. 2021-04-07 23:09:05 -07:00
from_form_type_errors.rs Improve diagnostics, especially on stable. 2020-07-21 15:31:42 -07:00
responder-types.rs Improve diagnostics, especially on stable. 2020-07-21 15:31:42 -07:00
responder.rs Allow custom generic bounds in 'Responder' derive. 2021-05-26 02:26:11 -07:00
route-attribute-general-syntax.rs Improve diagnostics, especially on stable. 2020-07-21 15:31:42 -07:00
route-path-bad-syntax.rs Improve diagnostics, especially on stable. 2020-07-21 15:31:42 -07:00
route-type-errors.rs Improve diagnostics, especially on stable. 2020-07-21 15:31:42 -07:00
route-warnings.rs Drop 'Data' after sending a response, not before. 2021-06-08 13:26:16 -07:00
routes.rs Improve diagnostics, especially on stable. 2020-07-21 15:31:42 -07:00
synchronize.sh Allow custom generic bounds in 'Responder' derive. 2021-05-26 02:26:11 -07:00
typed-uri-bad-type.rs Overhaul URI types, parsers, 'uri!' macro. 2021-05-19 18:47:11 -07:00
typed-uris-bad-params.rs Overhaul URI types, parsers, 'uri!' macro. 2021-05-19 18:47:11 -07:00
typed-uris-invalid-syntax.rs Overhaul URI types, parsers, 'uri!' macro. 2021-05-19 18:47:11 -07:00
uri_display.rs UTF-8 routes. Forms revamp. Temp files. Capped. 2021-03-04 01:51:21 -08:00
uri_display_type_errors.rs Improve diagnostics, especially on stable. 2020-07-21 15:31:42 -07:00