Refactored project

This commit is contained in:
2021-05-15 21:20:02 +02:00
parent 4ce3569458
commit 19004d8cf1
5 changed files with 585 additions and 390 deletions

View File

@ -21,7 +21,7 @@ fn main() {
for stream in tcp_socket.incoming() {
pool_mutex_ref.lock().unwrap().execute(|| {
let stream = stream.unwrap();
http::handler::connection_handler(http::Stream::Tcp(stream));
http::connection_handler(http::Stream::Tcp(stream));
});
}
}));
@ -41,7 +41,7 @@ fn main() {
pool_mutex_ref.lock().unwrap().execute(move || {
let stream = stream.unwrap();
let stream = acceptor.accept(stream).unwrap();
http::handler::connection_handler(http::Stream::Ssl(stream));
http::connection_handler(http::Stream::Ssl(stream));
});
}
}));