pub struct ServerBuilder { /* private fields */ }Expand description
A builder struct for starting a test Server.
Implementations§
source§impl ServerBuilder
impl ServerBuilder
sourcepub fn new(extensions: Extensions, options: Options) -> Self
pub fn new(extensions: Extensions, options: Options) -> Self
Creates a new builder with extensions and options,
with HTTPS enabled. To disable this, call Self::http.
Use Self::default() for a default configuration.
Also see the From implementations for this struct.
The inner Extensions can be modified with Self::with_extensions
and the