Basic ugly server working

This commit is contained in:
2021-05-14 21:17:38 +02:00
parent 0b76ba2069
commit bb12b57bf1
5 changed files with 106 additions and 1 deletions

17
src/http.rs Normal file
View File

@ -0,0 +1,17 @@
use std::net::TcpStream;
use openssl::ssl::SslStream;
pub enum Stream {
Tcp(TcpStream),
Ssl(SslStream<TcpStream>),
}
impl Stream {}
pub fn connection_handler(client: Stream) {
}
fn request_handler(client: Stream) {
}