Rocket/examples
Sergio Benitez 03127f4dae Add blocking variant of 'local'.
This commit adds the 'local::blocking' module and moves the existing
asynchronous testing to 'local::asynchronous'. It also includes several
changes to improve the local API, bringing it to parity (and beyond)
with master. These changes are:

  * 'LocalRequest' implements 'Clone'.
  * 'LocalResponse' doesn't implement 'DerefMut<Target=Response>'.
    Instead, direct methods on the type, such as 'into_string()', can
    be used to read the 'Response'.
  * 'Response::body()' returns an '&ResponseBody' as opposed to '&mut
    ResponseBody', which is returned by a new 'Response::body_mut()'.
  * '&ResponseBody' implements 'known_size()` to retrieve a body's size,
    if it is known.

Co-authored-by: Jeb Rosen <jeb@jebrosen.com>
2020-07-11 09:24:30 -07:00
..
config Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
content_types Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
cookies Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
errors Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
fairings Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
form_kitchen_sink Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
form_validation Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
handlebars_templates Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
hello_2018 Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
hello_person Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
hello_world Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
json Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
managed_queue Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
manual_routes Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
msgpack Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
optional_redirect Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
pastebin Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
query_params Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
ranking Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
raw_sqlite Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
raw_upload Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
redirect Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
request_guard Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
request_local_state Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
session Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
state Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
static_files Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
stream Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
tera_templates Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
testing Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
tls Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
todo Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
uuid Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00