use hypers::prelude::*; use hypers_middleware::Compression; fn main() -> Result<()> { let mut root = Router::new("/"); root.hook(Compression::Deflate, vec!["/"], None); root.get("readme", StaticFile::new("hypers_middleware/README.md")); hypers::run(root, "127.0.0.1:7878") }