Skip to content

Releases: seanmonstar/warp

v0.3.6

27 Sep 14:18
Compare
Choose a tag to compare

Features

  • Add ability to pass None to multipart::form().max_length().
  • Implement Reply for Result<impl Reply, impl Reply>.
  • Make multipart::Part::content_type() return the full mime string.
  • Add TlsServer::try_bind_with_graceful_shutdown().

Fixes

  • Updated tungstenite and rustls dependencies for security fixes.

New Contributors

v0.3.5

28 Apr 16:12
Compare
Choose a tag to compare

Fixes

  • multipart filters now use multer dependency, fixing some streaming bugs.
  • Rejection::into_response() is significantly faster.

New Contributors

v0.3.4

31 Mar 18:57
Compare
Choose a tag to compare

Fixes

  • multipart::Part data is now streamed instead of buffered.
  • Update dependency used for multipart filters.

New Contributors

v0.3.3

03 Feb 16:11
Compare
Choose a tag to compare
  • Fixes:
    • Fix fs filters path sanitization to reject colons on Windows.

v0.3.2

09 Nov 18:11
Compare
Choose a tag to compare

Features:

  • Add Filter::then(), which is like Filter::map() in that it's infallible, but is async like Filter::and_then().
  • Add redirect::found() reply helper that returns 302 Found.
  • Add compression-brotli and compression-gzip cargo features to enable only the compression you need.
  • Allow HEAD requests to be served to fs::dir() filters.
  • Allow path!() with no arguments.

Fixes:

  • Update private dependencies Tungstenite and Multipart.
  • Replaces uses of futures with futures-util, which is a smaller dependency.

New Contributors

v0.3.1

25 Mar 00:27
Compare
Choose a tag to compare
  • Features:
    • Add pong constructor to websocket messages.
    • Add redirect::see_other and redirect::permanent helpers.
  • Fixes:
    • Fix fs filters sometimes having an off-by-one error with range requests.
    • Fix CORS to allow spaces when checking Access-Control-Request-Headers.

v0.3.0

19 Jan 22:56
Compare
Choose a tag to compare
  • Features:
    • Add TLS client authentication support.
    • Add TLS OCSP stapling support.
    • Add From<Reject> for Rejection.
    • Add close_frame accessor to ws::Message.
  • Changes:
    • Update to Tokio v1.
    • Update to Bytes v1.
    • Update to hyper v0.14.
    • Rework sse filter to be more like ws, with a single Event type and builder.
    • Change cookie filter to extract a generic FromStr value.

v0.2.5

31 Aug 20:01
Compare
Choose a tag to compare
  • Features:
    • Add wrap_fn, which can be used to create a Wrap from a closure. These in turn are used with Filter::with().
    • Add warp::host filters to deal with Host/:authority headers.
    • Relax some lifetime bounds on Server.
  • Fixes:
    • Fix panic when URI doesn't have a slash (for example, CONNECT foo.bar).

v0.2.4

20 Jul 18:35
Compare
Choose a tag to compare
  • Features:
    • Add tracing internals in place of log (log is still emitted for backwards compatibility).
    • Add warp::trace module set of filters to customize tracing dianostics.
    • Add path method to warp::fs::File reply.
    • Add source implementation for BodyDeserializeError.
    • Make warp::ws::MissingConnectionUpgrade rejection public.

v0.2.3

19 May 19:38
Compare
Choose a tag to compare
  • Features:
    • Add warp::compression filters, which will compress response bodies.
    • Add warp::header::value() filter to get a request HeaderValue.
    • Add request_headers method to warp::log::Info.
    • Add max_frame_size to warp::ws::Ws builder.
    • Add remote_addr to warp::test::RequestBuilder.
    • Add try_bind_with_graceful_shutdown to warp::Server builder.
    • Add serve_incoming_with_graceful_shutdown to warp::Server builder.
  • Fixes:
    • Fix warp::addr::remote when used with Server::tls.
    • Fix panic in warp::path::{peek, tail, full} filters when the request URI is in authority-form or asterisk-form.