Add http parser

This commit is contained in:
2021-05-15 19:17:47 +02:00
parent bb12b57bf1
commit 4ce3569458
2 changed files with 494 additions and 9 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::connection_handler(http::Stream::Tcp(stream));
http::handler::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::connection_handler(http::Stream::Ssl(stream));
http::handler::connection_handler(http::Stream::Ssl(stream));
});
}
}));
@ -59,6 +59,6 @@ fn main() {
}));
for thread in threads {
thread.join();
thread.join().unwrap();
}
}