Registry / web-framework / tower-cookies

tower-cookies

JSON →
library0.11.0rscratesunverified

Cookie manager middleware for the Tower HTTP framework.

# Cargo.toml [dependencies] tower-cookies = "0.11.0"
INSTALL
IMPORT
SIG · TOWER-COOKIES
T
tower-cookies
web-frameworkrustv0.11.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CookieManagerLayer
use tower_cookies::CookieManagerLayer;

Adds cookie management middleware to an Axum router.

use tower_cookies::CookieManagerLayer; use axum::Router; fn main() { let app = Router::new().layer(CookieManagerLayer::new()); // ... run server }
Debug
Known issues
gotchaRequires a runtime like Tokio for async middleware
fix
Add tokio as a dependency and use #[tokio::main].
affects: >=0.1.0
Upgrade
Version history
0.11.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
tower-cookies — cargo add tower-cookies · libregistry