37 releases (17 breaking)
Uses new Rust 2021
|0.18.2||Sep 13, 2022|
|0.17.0||Aug 9, 2022|
|0.16.7||Jul 27, 2022|
|0.15.0||Mar 7, 2022|
#174 in HTTP server
5,379 downloads per month
Experimental extractors, middleware, and other extras for possible inclusion in Actix Web.
Csv: efficient CSV streaming (docs)
NdJson: efficient NDJSON streaming (docs)
DisplayStream: efficient line-by-line
Html: basic string wrapper that responds with HTML Content-Type (docs)
Sse: semantic server-sent events (SSE) responder with a channel-like interface (docs)
from_fn: use an async function as a middleware (docs)
RedirectHttps: middleware to redirect traffic to HTTPS if connection is insecure with optional HSTS (docs)
redirect_to_www: function middleware to redirect traffic to
www.if not already there (docs)
ErrorHandlers: alternative error handler middleware with simpler interface (docs)
NormalizePath: alternative path normalizing middleware with redirect option (docs)
CatchPanic: catch panics in wrapped handlers and middleware, returning empty 500 responses (docs)
PanicReporter: catch panics in wrapped handlers and middleware, returning empty 500 responses (docs)
LoadShed: sheds load when the inner service isn't ready (docs)
LazyData: app data/state initialized on first use (docs)
SwapData: app data/state that can be replaced at runtime (alternative to
LocalData: app data/state that uses an
Rcinternally, avoiding atomic overhead (alternative to
Json: simplified JSON extractor with const-generic limits (docs)
Path: simplified path parameter extractor that supports destructuring (docs)
Query: simplified query-string extractor that can also collect multi-value items (docs)
RequestSignature: wraps an extractor and calculates a request signature alongside (docs)
BodyLimit: wraps a body extractor and prevents DoS attacks by limiting payload size (docs)
FromRequest: Derive macro to implement
FromRequeston an aggregate struct of other extractors (docs)
StrictTransportSecurity: Strict-Transport-Security (HSTS) configuration (docs)
CacheControl: Cache-Control typed header with support for modern directives (docs)
ContentLength: Content-Length typed header (docs)
channel: a simple channel-like body type with a sender side that can be used from another thread (docs)
writer: a simple
AsyncWritebody type (docs)
Acceptable: verifies that an
Acceptheader is present and it contains a compatible MIME type (docs)
TestRequestusing an HTTP-like DSL (docs)
assert_response_matches: quickly write tests that check various parts of a
- It will never reach v1.0.
- Minimum Supported Rust Version (MSRV) is latest stable at the time of each release.
- Breaking changes will likely happen on most 0.x version bumps.
- Documentation might be limited for some items.
- Items that graduate to Actix Web crate will be marked deprecated here for a reasonable amount of time so you can migrate.
- Migrating will often be as easy as dropping the
_labsuffix from imports.