mirror of
https://github.com/rwf2/Rocket.git
synced 2024-12-27 04:42:40 +00:00
44f5f1998d
This is a complete rework of `Responder`s and of the http backend in general. This gets Rocket one step closer to HTTP library independence, enabling many future features such as transparent async I/O, automatic HEAD request parsing, pre/post hooks, and more. Summary of changes: * `Responder::response` no longer takes in `FreshHyperResponse`. Instead, it returns a new `Response` type. * The new `Response` type now encapsulates a full HTTP response. As a result, `Responder`s now return it. * The `Handler` type now returns an `Outcome` directly. * The `ErrorHandler` returns a `Result`. It can no longer forward, which made no sense previously. * `Stream` accepts a chunked size parameter. * `StatusCode` removed in favor of new `Status` type. * `ContentType` significantly modified. * New, lightweight `Header` type that plays nicely with `Response`. |
||
---|---|---|
.. | ||
config | ||
content_types | ||
cookies | ||
errors | ||
extended_validation | ||
form_kitchen_sink | ||
forms | ||
from_request | ||
handlebars_templates | ||
hello_alt_methods | ||
hello_person | ||
hello_ranks | ||
hello_world | ||
json | ||
manual_routes | ||
optional_redirect | ||
optional_result | ||
pastebin | ||
query_params | ||
raw_upload | ||
redirect | ||
static_files | ||
stream | ||
testing | ||
todo |