Struct ocean::Application [] [src]

pub struct Application {
    pub router: Router,
    pub context: Context,
    pub middleware: Middleware,
    pub public: Public,
    pub view: View,
    // some fields omitted
}

Web application.

Fields

Router.

DynamicContext for template engine.

Middleware.

Public directory.

View setting.

Methods

impl Application
[src]

Create a web application.

Start application.

Trait Implementations

impl Default for Application
[src]

Returns the "default value" for a type. Read more

impl Handler for Application
[src]

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

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

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

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

impl Send for Application
[src]

impl Sync for Application
[src]