]> piware.de Git - learn-rust.git/commit
actix-server: Add static file route with gz support
authorMartin Pitt <martin@piware.de>
Sat, 10 Dec 2022 10:59:12 +0000 (11:59 +0100)
committerMartin Pitt <martin@piware.de>
Sat, 10 Dec 2022 10:59:12 +0000 (11:59 +0100)
commitf5c4a6a87fc589dec2f23bee0196beb07d427ae7
treef5581b5372e405556be6213f10de79077f5bfa7f
parent9bcb2f272943c88dd3cafe1f5679fcd3a20a89a9
actix-server: Add static file route with gz support

This shows how to serve dynamically computed file paths/types, with gzip
transport encoding support.
actix-server/Cargo.toml
actix-server/src/main.rs