Struct actix_web::test::TestServerBuilder
[−]
[src]
pub struct TestServerBuilder<S> { /* fields omitted */ }An TestServer builder
This type can be used to construct an instance of TestServer through a
builder-like pattern.
Methods
impl<S: 'static> TestServerBuilder<S>[src]
pub fn new<F>(state: F) -> TestServerBuilder<S> where
F: Fn() -> S + Sync + Send + 'static, [src]
F: Fn() -> S + Sync + Send + 'static,
pub fn start<F>(self, config: F) -> TestServer where
F: Sync + Send + 'static + Fn(&mut TestApp<S>), [src]
F: Sync + Send + 'static + Fn(&mut TestApp<S>),
Configure test application and run test server