Releases: seanmonstar/warp
Releases · seanmonstar/warp
v0.2.2
- Features:
- Implement
Reply
for allBox<T>
whereT: Reply
. - Add
name
methods toMissingHeader
,InvalidHeader
, andMissingCookie
rejections. - Add
warp::ext::optional()
filter that optionally retrieves an extension from the request.
- Implement
- Fixes:
- Fix the sending of pings when a user sends a
ws::Message::ping()
.
- Fix the sending of pings when a user sends a
v0.2.1
- Features:
- Add
close
andclose_with
constructors towarp::ws::Message
.
- Add
- Fixes:
- Fix
warp::fs
filters using a very small read buffer.
- Fix
v0.2.0
- Features:
- Update to
std::future
, addingasync
/await
support! - Add
warp::service()
to convert aFilter
into atower::Service
. - Implement
Reply
forBox<dyn Reply>
.
- Update to
- Changes:
- Refactored Rejection system (#311).
- Change
path!
macro to assume apath::end()
by default, with explicit/ ..
to allow building a prefix (#359). - Change
warp::path(str)
to accept anyAsRef<str>
argument. - Rename "2"-suffixed filters and types (
get2
toget
,ws2
tows
, etc). Filter::{or, or_else, recover}
now requireSelf::Error=Rejection
. This helps catch filters that didn't make sense (likewarp::any().or(warp::get())
).- Change several
warp::body
filters (#345). - Change
warp::cors()
to return awarp::cors::Builder
which still implementsWrap
, but can alsobuild
a cheaper-to-clone wrapper. - Change
warp::multipart
stream API to allow for errors when streaming. - Change
warp::sse
to no longer return aFilter
, addswarp::sse::reply
to do whatSse::reply
did. - Change
Server::tls()
to return a TLS server builder (#340). - Change internal
warp::never::Never
usage withstd::convert::Infallible
. - Remove
warp::ext::set()
function (#222). - Remove deprecated
warp::cookie::optional_value()
.
v0.1.20
- Features:
- Implement
Clone
for thewarp::cors
filter. - Add
into_bytes
method forwarp::ws::Message
.
- Implement
v0.1.19
- Features:
- Make
warp::multipart
andwarp::ws
support optional, though enabled by default.
- Make
- Fixes:
- Fix
warp::fs::dir
filter to reject paths containing backslashes.
- Fix
v0.1.18
- Features:
-
Add
warp::multipart
support.The
warp::multipart::form()
filter will extract aFormData
type, which is aStream
ofPart
s. In turn, eachPart
is a stream of bytes making up its value.
-
v0.1.17
- Features:
- Export all built-in Rejection causes in the
warp::reject
module. - Add
Server::try_bind
as fallible bind methods.
- Export all built-in Rejection causes in the
v0.1.16
- Features:
- Unseal the
Reply
trait: custom types can now implementReply
. - Add
warp::sse::keep_alive()
replacement forwarp::sse::keep()
which allows customizing keep-alive behavior. - Add
warp::log::Info::host()
accessor.
- Unseal the
- Fixes:
- Fix
warp::fs
filters from sending some headers for304
responses.
- Fix
v0.1.15
- Features:
- Add more accessors to
warp::log::Info
type for building custom log formats. - Implement
Reply
forCow<'static, str>
.
- Add more accessors to
v0.1.14
- Features:
- Add
warp::header::optional
filter.
- Add