actix-web
actix-web copied to clipboard
Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.
## Expected Behavior I have roughly the following code (a full reproducer will be linked further down): ```rust struct State { _x: Arc, } let (x_weak, data) = { let...
## PR Type Test/Question/Other ## PR Checklist - [ ] Tests for the changes have been added / updated. - [ ] Documentation comments have been added / updated. -...
## PR Type Adds predicate for compression of responses with default value that skips compression for video and images. ## PR Checklist - [x] Tests for the changes have been...
[Cookie::set_value](https://docs.rs/actix-web/latest/actix_web/cookie/struct.Cookie.html#method.set_value) accepts any unicode string and never fails, but some unicode strings [are not valid cookie values](https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1). Could we add a `try_set_value` method that only accepts valid values ? Otherwise,...
## PR Type Feature ## PR Checklist - [x] Tests for the changes have been added / updated. - [x] Documentation comments have been added / updated. - [x] A...
Reproduce snippet: ```rust #[actix_web::main] async fn main() -> std::io::Result { let sys_time = std::time::SystemTime::now(); let start_time = sys_time.elapsed().unwrap(); let client = actix_web::client::Client::builder() .connector(actix_web::client::Connector::new() .timeout(Duration::from_secs(35)) .finish()) .timeout(Duration::from_secs(35)) .finish(); let response =...
This only exists on windows platforms. ## Expected Behavior Panic if can not bind to port ## Current Behavior continue runs, but can not really listen ## Steps to Reproduce...
When use Compression on SSE and the stream is slow or have time gaps, then nothing is written to the output stream. Also no keep-alives. As far I can see...
## PR Type Dependency update ## PR Checklist - [x] Tests for the changes have been added / updated. - [x] Documentation comments have been added / updated. - [x]...
Linking to the discussion, which contains the meat of the issue. https://github.com/actix/actix-web/discussions/3011 Likewise, I'm aware of the difficult nature of this ask given the statelessness of the http protocol... I...