tower-real-ip

Crates.iotower-real-ip
lib.rstower-real-ip
version0.1.0
created_at2025-12-26 16:04:35.714873+00
updated_at2025-12-26 16:04:35.714873+00
descriptionA production-ready Tower middleware for resolving the real client IP via trusted proxies.
homepage
repositoryhttps://github.com/houseme/tower-real-ip
max_upload_size
id2005903
size50,005
houseme (houseme)

documentation

README

tower-real-ip

A Tower middleware for extracting the real client IP address from various headers.

installation

Add this to your Cargo.toml:

[dependencies]
tower-real-ip = "0.1"

usage

use tower_real_ip::RealIpLayer;
use tower::ServiceBuilder;

let service = ServiceBuilder::new()
.layer(RealIpLayer::new())
.service(your_service);

license

This project is licensed under the MIT License. See the LICENSE file for details

Commit count: 0

cargo fmt