warp
warp copied to clipboard
A super-easy, composable, web server framework for warp speeds.
**Version** warp v0.3.1 **Platform** `Linux branna 5.8.0-53-generic #60-Ubuntu SMP Thu May 6 07:46:32 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux` **Description** A `Range:` header like `bytes=-10` is supposed to return the...
The current `run_incoming` does not support obtaining `remote_addr` dute to impl (PS: always return None). ```rust impl Transport for LiftIo { fn remote_addr(&self) -> Option { None } } ```...
This could be a handy method to add? Now we can do stuff like: ```rust warp::reply::json(value).with_status(StatusCode::CREATED) ``` or this can be simply done as well: ```rust let routes = warp::any().map(||...
proposal for public interface to make a Response from a Rejection, using somewhat idiomatic Rust implementing the Into trait. This is for issue #451 In users code this would work...
I spent around a day trying to figure out how to serve a single page application via `warp` and once I figured it out I thought I'd add an example...
Adds a `negate` method to the `Filter` trait. A filter is kind of like a `Predicate` on a request (kind of, ignoring return and error types). In other languages predicates...
This pull request implements `warp::reply::xml()` and `warp::body::xml()` to match JSON functionality, as well as introducing strict type checking on content-type to allow for easier composition. I've also added tests for...
Adds a new method to `Filter` that wraps `Self::Extract` in a tuple. This is useful in generic code that doesn't know how many arguments the filter extracts. ```rust // effective...
`http::Error` implements `From`, this just shortcuts that so we can have an easy time with infallible results. Another option is to implement the following: ``` impl Reply for Result where...
As a new user of warp I struggled a bit while writing a small proxy server. Specifically the combination of `warp::method`, `warp::path::full`, `warp::header::headers_cloned` and `warp::body::bytes` to gain access to all...