pub fn with_timeout(new_handler: NH, timeout: u64) -> Result<TestServer<NH>, io::Error> {
        Core::new().map(|core| {
            let data = TestServerData {
                timeout,
                core: RefCell::new(core),
                http: Http::new(),
                gotham_service: GothamService::new(new_handler),
            };

            TestServer {
                data: Rc::new(data),
            }
        })
    }
/// Sets the request timeout to `timeout` seconds and returns a new `TestServer`.
Sets the request timeout to `timeout` seconds and returns a new `TestServer`.
Sets the request timeout to ` timeout ` seconds and returns a new ` TestServer ` .
pub fn with_timeout(new_handler: NH, timeout: u64) -> Result<TestServer<NH>, io::Error> {
        Core::new().map(|core| {
            let data = TestServerData {
                timeout,
                core: RefCell::new(core),
                http: Http::new(),
                gotham_service: GothamService::new(new_handler),
            };
            TestServer {
                data: Rc::new(data),
            }
        })
    }
pub fn with_timeout ( new_handler : NH , timeout : u64 ) -> Result < TestServer < NH > , io :: Error > { Core :: new ( ) . map ( | core | { let data = TestServerData { timeout , core : RefCell :: new ( core ) , http : Http :: new ( ) , gotham_service : GothamService :: new ( new_handler ) , } ; TestServer { data : Rc :: new ( data ) , } } ) }
Sets the request timeout to `timeout` seconds and returns a new `TestServer`.
Sets the request timeout to ` timeout ` seconds and returns a new ` TestServer ` .
new_handler
NH
timeout
u64
new_handler
NH
timeout
u64