{"id":57352,"library":"tower-http","title":"Tower HTTP","description":"Tower middleware and utilities for HTTP clients and servers.","status":"active","version":"0.7.0","language":"rust","source_language":null,"source_url":"https://github.com/tower-rs/tower-http","tags":["http","middleware","tower","axum"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ntower-http = \"0.7.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add tower-http","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"CorsLayer","correct":"use tower_http::cors::CorsLayer;"}],"quickstart":{"code":"use tower_http::cors::CorsLayer;\nuse axum::Router;\n\nlet app = Router::new().layer(CorsLayer::permissive());\n// Run with axum::Server","lang":"rust","description":"Adds a permissive CORS layer to an Axum router."},"warnings":[{"fix":"Enable the needed feature in Cargo.toml: tower-http = { version = \"0.7\", features = [\"cors\"] }","message":"Requires feature flags for specific middleware (e.g., \"cors\", \"compression\").","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'axum':15 'client':9 'http':2,8,12 'middlewar':4,13 'server':11 'tower':1,3,14 'util':6","created_at":"2026-06-16T15:39:03.232557+00:00","updated_at":"2026-06-16T15:39:03.232557+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/tower-rs/tower-http","github":"https://github.com/tower-rs/tower-http","docs":"https://docs.rs/tower-http/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework","networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}