pub fn new(factory: F) -> Self {
        HttpServer {
            factory,
            config: Arc::new(Mutex::new(Config {
                host: None,
                keep_alive: KeepAlive::Timeout(5),
                client_timeout: 5000,
                client_shutdown: 5000,
            })),
            backlog: 1024,
            sockets: Vec::new(),
            builder: ServerBuilder::default(),
            on_connect_fn: None,
            _phantom: PhantomData,
        }
    }
/// Create new HTTP server with application factory
Create new HTTP server with application factory
Create new HTTP server with application factory
pub fn new(factory: F) -> Self {
        HttpServer {
            factory,
            config: Arc::new(Mutex::new(Config {
                host: None,
                keep_alive: KeepAlive::Timeout(5),
                client_timeout: 5000,
                client_shutdown: 5000,
            })),
            backlog: 1024,
            sockets: Vec::new(),
            builder: ServerBuilder::default(),
            on_connect_fn: None,
            _phantom: PhantomData,
        }
    }
pub fn new ( factory : F ) -> Self { HttpServer { factory , config : Arc :: new ( Mutex :: new ( Config { host : None , keep_alive : KeepAlive :: Timeout ( 5 ) , client_timeout : 5000 , client_shutdown : 5000 , } ) ) , backlog : 1024 , sockets : Vec :: new ( ) , builder : ServerBuilder :: default ( ) , on_connect_fn : None , _phantom : PhantomData , } }
Create new HTTP server with application factory
Create new HTTP server with application factory
factory
F
factory
F