Skip to content

Releases: seanmonstar/warp

v0.2.2

19 May 19:37
Compare
Choose a tag to compare
  • Features:
    • Implement Reply for all Box<T> where T: Reply.
    • Add name methods to MissingHeader, InvalidHeader, and MissingCookie rejections.
    • Add warp::ext::optional() filter that optionally retrieves an extension from the request.
  • Fixes:
    • Fix the sending of pings when a user sends a ws::Message::ping().

v0.2.1

23 Jan 22:50
Compare
Choose a tag to compare
  • Features:
    • Add close and close_with constructors to warp::ws::Message.
  • Fixes:
    • Fix warp::fs filters using a very small read buffer.

v0.2.0

16 Jan 19:22
Compare
Choose a tag to compare
  • Features:
    • Update to std::future, adding async/await support!
    • Add warp::service() to convert a Filter into a tower::Service.
    • Implement Reply for Box<dyn Reply>.
  • Changes:
    • Refactored Rejection system (#311).
    • Change path! macro to assume a path::end() by default, with explicit / .. to allow building a prefix (#359).
    • Change warp::path(str) to accept any AsRef<str> argument.
    • Rename "2"-suffixed filters and types (get2 to get, ws2 to ws, etc).
    • Filter::{or, or_else, recover} now require Self::Error=Rejection. This helps catch filters that didn't make sense (like warp::any().or(warp::get())).
    • Change several warp::body filters (#345).
    • Change warp::cors() to return a warp::cors::Builder which still implements Wrap, but can also build a cheaper-to-clone wrapper.
    • Change warp::multipart stream API to allow for errors when streaming.
    • Change warp::sse to no longer return a Filter, adds warp::sse::reply to do what Sse::reply did.
    • Change Server::tls() to return a TLS server builder (#340).
    • Change internal warp::never::Never usage with std::convert::Infallible.
    • Remove warp::ext::set() function (#222).
    • Remove deprecated warp::cookie::optional_value().

v0.1.20

16 Jan 18:46
Compare
Choose a tag to compare
  • Features:
    • Implement Clone for the warp::cors filter.
    • Add into_bytes method for warp::ws::Message.

v0.1.19

16 Jan 18:45
Compare
Choose a tag to compare
  • Features:
    • Make warp::multipart and warp::ws support optional, though enabled by default.
  • Fixes:
    • Fix warp::fs::dir filter to reject paths containing backslashes.

v0.1.18

26 Jul 16:59
Compare
Choose a tag to compare
  • Features:
    • Add warp::multipart support.

      The warp::multipart::form() filter will extract a FormData type, which is a Stream of Parts. In turn, each Part is a stream of bytes making up its value.

v0.1.17

26 Jul 16:57
Compare
Choose a tag to compare
  • Features:
    • Export all built-in Rejection causes in the warp::reject module.
    • Add Server::try_bind as fallible bind methods.

v0.1.16

26 Jul 16:57
Compare
Choose a tag to compare
  • Features:
    • Unseal the Reply trait: custom types can now implement Reply.
    • Add warp::sse::keep_alive() replacement for warp::sse::keep() which allows customizing keep-alive behavior.
    • Add warp::log::Info::host() accessor.
  • Fixes:
    • Fix warp::fs filters from sending some headers for 304 responses.

v0.1.15

26 Jul 16:56
Compare
Choose a tag to compare
  • Features:
    • Add more accessors to warp::log::Info type for building custom log formats.
    • Implement Reply for Cow<'static, str>.

v0.1.14

26 Jul 16:56
Compare
Choose a tag to compare
  • Features:
    • Add warp::header::optional filter.