warp
warp copied to clipboard
A super-easy, composable, web server framework for warp speeds.
**Is your feature request related to a problem? Please describe.** There are different levels of [brotli](https://docs.rs/warp/0.3.2/warp/filters/compression/fn.brotli.html) compression, ranging from 1 (fastest / less efficient / bigger sizes) to 11 (slower...
When I run the following program: ``` use std::{io, path}; use warp::Filter; #[tokio::main] async fn main() -> io::Result { let cwd = path::Path::new(".").canonicalize()?; warp::serve(warp::path("static").and(warp::fs::dir(cwd))) .run(([0, 0, 0, 0], 3030)) .await;...
Currently the `Message` type is a bit hard to work with as can be seen here: https://github.com/communityvi/communityvi/blob/26bfbe16c8c4dc46545edeebf96d2b3aed8887ab/communityvi-server/src/utils/websocket_message_conversion.rs#L4-L33 While looking at the code I also happened to notice the comment about...
Release 2.3 added output compression, but this compression is applied unconditionally. It would be better to respect the `Accept-encoding` header (or at least an approximation of it) by only compressing...
Greetings! I can choose only one type of compression in `Cargo.toml` but can't use it in code. This PR fix it.
**Version** `warp = { version = "0.3.2", features = ["compression", "tls"] }` **Platform** `Linux fedora 5.16.12-200.fc35.x86_64` **Description** I've done a lot of searching in the official doco, in github issues,...
Occasionally changed files are not updated in the browser. I wonder if it would make sense to add `ETag` support (even it it requires to read the entire file first)?
Hi, currently the project does not have a svg icon. How about using the following one? 
I have a object which needs to be used by all handlers. I'm not sure how to "share" this reference without recreating / singltoning it. Toy example here: ``` struct...