Struct tiny_http::ServerBuilder
[−]
[src]
pub struct ServerBuilder { // some fields omitted }
Object which allows you to build a server.
Methods
impl ServerBuilder
[src]
fn new() -> ServerBuilder
Creates a new builder.
fn with_port(self, port: u16) -> ServerBuilder
The server will use a precise port.
fn with_random_port(self) -> ServerBuilder
The server will use a random port.
Call server.get_server_addr()
to retreive it once the server is created.
fn with_client_connections_timeout(self, milliseconds: u32) -> ServerBuilder
The server will use a precise port.
fn build(self) -> IoResult<Server>
Builds the server with the given configuration.