Crate actix_web_lab

source
Expand description

In-progress extractors and middleware for Actix Web.

§What Is This Crate?

This crate serves as a preview and test ground for upcoming features and ideas for Actix Web’s built in library of extractors, middleware and other utilities.

Any kind of feedback is welcome.

§Complete Examples

See the examples folder for some complete examples of items in this crate.

§Things To Know About This Crate

  • 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 _lab suffix from imports when migrating.

Modules§

  • Experimental body types.
  • Experimental extractors.
  • Experimental route guards.
  • Experimental typed headers.
  • Experimental middleware.
  • Experimental responders and response helpers.
  • Semantic server-sent events (SSE) responder
  • Experimental testing utilities.
  • Utilities for working with Actix Web types.
  • Experimental services.

Macros§

  • Quickly write tests that check various parts of a ServiceResponse.
  • Create a TestRequest using a DSL that looks kinda like on-the-wire HTTP/1.x requests.

Derive Macros§

  • Derive a FromRequest implementation for an aggregate struct extractor.