aboutsummaryrefslogtreecommitdiff
path: root/src/server.rs
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2024-06-06 22:22:58 +0300
committeromagdy7 <omar.professional8777@gmail.com>2024-06-06 22:22:58 +0300
commitf2cdc940374a2eef7cdae9a34c90a52e527a0874 (patch)
treee0c31a41251a42303514ee4f375f0b4507fdc162 /src/server.rs
parentfe378c20c645ca1cb6cc04e95c9afd4c2de5c0e8 (diff)
downloadtiny-server-f2cdc940374a2eef7cdae9a34c90a52e527a0874.tar.xz
tiny-server-f2cdc940374a2eef7cdae9a34c90a52e527a0874.zip
refactor: Changed the method struct signatrue and added a new general Endpoint struct for better ergonomic api
Diffstat (limited to 'src/server.rs')
-rw-r--r--src/server.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.rs b/src/server.rs
index 9c60d33..6c0eeb1 100644
--- a/src/server.rs
+++ b/src/server.rs
@@ -40,7 +40,7 @@ impl Server {
let request_string: String = (&request).into();
println!("Request after parsing:\n{}", request_string);
- dbg!(&request.method);
+ dbg!(&request.endpoint);
let response: Vec<u8> = router.handle(&request, ctx).into();
stream.write(response.as_bytes())