Rocket
Rocket copied to clipboard
A web framework for Rust.
Addresses: https://github.com/SergioBenitez/Rocket/issues/2286 For testing I examined `Rocket/target/doc/rocket/response/trait.Responder.html` after `cargo doc`.
**Description** Setting event type of `rocket::response::stream::Event::json` with `.event(...)` causes the SSE event to never arrive **To Reproduce** Works: ```rust #[get("/chat/events")] pub async fn events(auth: Authentication, queue: &State, mut end: Shutdown)...
**Is your feature request motivated by a concrete problem? Please describe.** Currently, Rocket fails to start with a SEC1 format private key. `Error: binding failed: bad TLS private key: invalid...
Found via `codespell -L crate,ser,fo,noo,nd,cappable,pard,te,ans`
**Is your feature request motivated by a concrete problem?** I would like to use [sentry-log](https://github.com/getsentry/sentry-rust/tree/master/sentry-log) to send errors from the log crate to [sentry](https://github.com/getsentry/sentry), without losing the RocketLog to stdout....
Currently (Rocket version 0.4.0-dev) if you use a wildcard in content-type you will get a warning like this: ```rust warning: 'image/*' is not a known media type --> src/handlers/image.rs:5:33 |...
Hi. Consider the following route: ```rust #[post("/hello")] pub fn hello() -> &'static str { "Hello" } ``` now, if you call it with: ```bash curl http://localhost:8000/hello ``` it returns: ```...
There wasn't a good way to propagate the new option into `NamedFile` so I made a new constructor and added a flag to the struct. In order to make the...
`Request::client_ip` method currently always returns `None` on TLS connections if no “real ip” header is configured/present, a regression compared to Rocket 0.5. That’s because the fallback assumes `Request::remote` to return...
### Rocket Version 0.6.0 rev f75fb63 ### Operating System Fedora Linux 39 ### Rust Toolchain Version rustc 1.78.0-nightly (2bf78d12d 2024-02-18) and rustc 1.76.0 (07dca489a 2024-02-04) ### What happened? A low-level...