| 22 | #[allow(dead_code)] // it is debug printed |
| 23 | #[derive(Debug, Clone)] |
| 24 | struct ConnectionInfo { |
| 25 | bind: SocketAddr, |
| 26 | peer: SocketAddr, |
| 27 | ttl: Option<u32>, |
| 28 | } |
| 29 | |
| 30 | async fn route_whoami(req: HttpRequest) -> impl Responder { |
| 31 | let conn_info = req.conn_data::<ConnectionInfo>().unwrap(); |
nothing calls this directly
no outgoing calls
no test coverage detected