mirror of https://github.com/rwf2/Rocket.git
03127f4dae
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> |
||
---|---|---|
.. | ||
config | ||
content_types | ||
cookies | ||
errors | ||
fairings | ||
form_kitchen_sink | ||
form_validation | ||
handlebars_templates | ||
hello_2018 | ||
hello_person | ||
hello_world | ||
json | ||
managed_queue | ||
manual_routes | ||
msgpack | ||
optional_redirect | ||
pastebin | ||
query_params | ||
ranking | ||
raw_sqlite | ||
raw_upload | ||
redirect | ||
request_guard | ||
request_local_state | ||
session | ||
state | ||
static_files | ||
stream | ||
tera_templates | ||
testing | ||
tls | ||
todo | ||
uuid |