Actix-web Integration

Middleware and extractors for the Actix-web framework.

Installation

Basic Setup

Configure Prax with Actix-web's application data:

Using the Extractor

Extract the database connection in your handlers:

With Middleware

Use the PraxMiddleware for request-scoped connections:

Features

🎭 Actor Integration

Works seamlessly with Actix's actor system.

📤 FromRequest Extractor

Type-safe database connection extraction.

🔧 App Data

Shared connection pool via web::Data.

âš¡ High Performance

Optimized for Actix's multi-threaded runtime.