Rocket/contrib/lib/tests
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
..
static Implement a 'StaticFiles' custom handler in contrib. 2018-08-13 02:17:50 -07:00
templates Fix normalization and Windows issues. 2018-10-24 00:01:56 -07:00
compress_responder.rs.disabled Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
compression_fairing.rs.disabled Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
databases.rs Make 'Fairing::on_attach()' async. 2020-07-11 09:24:29 -07:00
helmet.rs Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
static_files.rs Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
templates.rs Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00