docs(examples): Update send_file example to use tokio-fs

This commit is contained in:
Aaron Riekenberg
2018-06-04 11:59:42 -05:00
committed by Sean McArthur
parent 14d9246de2
commit 7eca445ff9
3 changed files with 26 additions and 89 deletions

View File

@@ -14,6 +14,6 @@ Run examples with `cargo run --example example_name`.
* [`params`](params.rs) - A webserver that accept a form, with a name and a number, checks the parameters are presents and validates the input.
* [`send_file`](send_file.rs) - A server that sends back content of files either simply or streaming the response.
* [`send_file`](send_file.rs) - A server that sends back content of files using tokio_fs to read the files asynchronously.
* [`web_api`](web_api.rs) - A server consisting in a service that returns incoming POST request's content in the response in uppercase and a service that call that call the first service and includes the first service response in its own response.