headers-client-ip

Use with axum

```rust let app = Router::new().route("/ws", get(ws_handler));

async fn wshandler( ws: WebSocketUpgrade, ip: Option>, ) -> impl IntoResponse { if let Some(TypedHeader(userip)) = ip { println!("{} connected", user_ip); }

ws.on_upgrade(handle_socket)

}

async fn handle_socket(mut socket: WebSocket) { // } ```