Add sessions and cookies examples (#65)

Uses [`async-session`](https://crates.io/crates/async-session).
This commit is contained in:
David Pedersen
2021-08-01 09:15:44 +02:00
committed by GitHub
parent 30058dbbed
commit ea82acd175
4 changed files with 118 additions and 5 deletions
+2
View File
@@ -13,3 +13,5 @@
- [`error_handling_and_dependency_injection`](../examples/error_handling_and_dependency_injection.rs) - How to handle errors and dependency injection using trait objects.
- [`tokio_postgres`](../examples/tokio_postgres.rs) - How to use a tokio-postgres and bb8 to query a database.
- [`unix_domain_socket`](../examples/unix_domain_socket.rs) - How to run an Axum server over unix domain sockets.
- [`sessions`](../examples/sessions.rs) - Sessions and cookies using [`async-session`](https://crates.io/crates/async-session).
- [`tls_rustls`](../examples/tls_rustls.rs) - TLS with [`tokio-rustls`](https://crates.io/crates/tokio-rustls).