Basic ugly server working
This commit is contained in:
17
src/http.rs
Normal file
17
src/http.rs
Normal 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) {
|
||||
|
||||
}
|
Reference in New Issue
Block a user