This commit is contained in:
MeexReay 2024-09-12 16:59:10 +03:00
parent 1950328361
commit dc4e6294da

View File

@ -66,6 +66,8 @@ pub async fn handler_http_rrs<S: HttpServer + Send + 'static + Sync>(
.unwrap() .unwrap()
.collect::<Vec<SocketAddr>>()[0]; .collect::<Vec<SocketAddr>>()[0];
dbg!(addr);
let req = match HttpRequest::read(sock.get_mut(), &addr).await { let req = match HttpRequest::read(sock.get_mut(), &addr).await {
Ok(i) => i, Ok(i) => i,
Err(e) => { Err(e) => {
@ -74,6 +76,8 @@ pub async fn handler_http_rrs<S: HttpServer + Send + 'static + Sync>(
} }
}; };
dbg!(req);
let resp = match server.on_request(&req).await { let resp = match server.on_request(&req).await {
Some(i) => i, Some(i) => i,
None => { None => {