Rocket/core/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
..
absolute-uris-okay-issue-443.rs Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
attach-inspect.rs Replace 'Manifest' with 'Cargo'. 2020-07-11 09:24:30 -07:00
catcher-cookies-1213.rs Allow implementations of on_request fairings to return a Future that borrows from self, request, and data. 2020-07-11 09:24:29 -07:00
conditionally-set-server-header-996.rs Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
derive-reexports.rs Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
fairing_before_head_strip-issue-546.rs Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
flash-lazy-removes-issue-466.rs Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
form_method-issue-45.rs Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
form_value_decoding-issue-82.rs Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
head_handling.rs Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
limits.rs Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
local-request-content-type-issue-505.rs Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
local_request_private_cookie-issue-368.rs Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
mount_point.rs Migrate core to Rust 2018. 2019-06-25 13:45:23 -04:00
nested-fairing-attaches.rs Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
precise-content-type-matching.rs Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
redirect_from_catcher-issue-113.rs Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
responder_lifetime-issue-345.rs Make 'Responder' trait sync; fix its lifetimes. 2020-07-11 09:24:29 -07:00
route_guard.rs Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
segments-issues-41-86.rs Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
strict_and_lenient_forms.rs Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00
twice_managed_state.rs Add a test verifying that attempting to manage the same state type twice panics. 2020-07-11 09:24:29 -07:00
unsound-local-request-1312.rs Disable some known-failing tests for now. 2020-07-11 09:24:28 -07:00
uri-percent-encoding-issue-808.rs Add blocking variant of 'local'. 2020-07-11 09:24:30 -07:00