Rocket/examples
Sergio Benitez 2465e2f136 Make 'Responder' trait sync; fix its lifetimes.
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.
2020-07-11 09:24:29 -07:00
..
config Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
content_types Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
cookies Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
errors Add '#[rocket::main]' attribute and make 'launch()' an 'async fn'. 2020-07-11 09:24:29 -07:00
fairings Make 'Responder' trait sync; fix its lifetimes. 2020-07-11 09:24:29 -07:00
form_kitchen_sink Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
form_validation Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
handlebars_templates Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
hello_2018 Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
hello_person Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
hello_world Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
json Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
managed_queue Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
manual_routes Make 'Responder' trait sync; fix its lifetimes. 2020-07-11 09:24:29 -07:00
msgpack Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
optional_redirect Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
pastebin Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
query_params Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
ranking Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
raw_sqlite Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
raw_upload Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
redirect Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
request_guard Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
request_local_state Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
session Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
state Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
static_files Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
stream Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
tera_templates Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
testing Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
tls Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
todo Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00
uuid Add '#[rocket::launch]' attribute. 2020-07-11 09:24:29 -07:00