Struct sapper::SapperApp [] [src]

pub struct SapperApp {
    pub address: String,
    pub port: u32,
    pub shell: Option<Arc<Box<SapperAppShell + Send + Sync + 'static>>>,
    pub routers: Router,
    pub static_service: bool,
    pub init_closure: Option<Arc<Box<Fn(&mut SapperRequest) -> Result<()> + Send + Sync + 'static>>>,
    pub not_found: Option<String>,
}

Fields

Methods

impl SapperApp
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl Handler for SapperApp
[src]

[src]

Receives a Request/Response pair, and should perform some action on them. Read more

[src]

Called when a Request includes a Expect: 100-continue header. Read more

[src]

This is run after a connection is received, on a per-connection basis (not a per-request basis, as a connection with keep-alive may handle multiple requests) Read more

[src]

This is run before a connection is closed, on a per-connection basis (not a per-request basis, as a connection with keep-alive may handle multiple requests) Read more