Struct saphir::Server[][src]

pub struct Server { /* fields omitted */ }

The http server

Methods

impl Server
[src]

Create a new http server

Important traits for &'a mut R

Allows to set the listener uri (supported format is ://:)

Important traits for &'a mut R

This method will call the provided closure with a mutable ref of the router Once into the closure it is possible to add controllers to the router.

Important traits for &'a mut R

This method will call the provided closure with a mutable ref of the middleware_stack Once into the closure it is possible to add middlewares to the middleware_stack.

Important traits for &'a mut R

This method will call the provided closure with a mutable ref of the listener configurations Once into the closure it is possible to set the uri and ssl file paths.

This method will run untill the server terminates.

Auto Trait Implementations

impl Send for Server

impl !Sync for Server