| Crates.io | mogh_request_ip |
| lib.rs | mogh_request_ip |
| version | 1.0.0 |
| created_at | 2026-01-17 21:40:22.763112+00 |
| updated_at | 2026-01-17 21:40:22.763112+00 |
| description | Axum extractor for client request IP |
| homepage | |
| repository | https://github.com/moghtech/lib |
| max_upload_size | |
| id | 2051232 |
| size | 19,547 |
Axum extractor for client request IP.
// Use as axum extractor
async fn auth_request(
RequestIp(ip): RequestIp,
req: Request
) -> mogh_error::Result<String> {
println!("Client IP: {ip:?}");
Ok(ip.to_string())
}