Handler
interface Handler
The Handler interface that allows for handling HTTP requests
Methods
Handle an incoming HTTP request
Handle an incoming HTTP request
Handle an incoming HTTP request
with
pub fn with(self, middleware: Middleware): Handler
[src]
fn with(self, middleware: Middleware): Handler {
return middleware.transform(self);
}
Use a middleware to transform the handler
with
pub fn with(self, middleware: Middleware): Handler
[src]
fn with(self, middleware: Middleware): Handler {
return middleware.transform(self);
}
Use a middleware to transform the handler
Use a middleware to transform the handler
[src]
fn after(self, f: |(Response): Response throws|): Handler {
return After { handler: self, f };
}
[src]
fn after(self, f: |(Response): Response throws|): Handler {
return After { handler: self, f };
}
[src]
fn before(self, f: |(Request): Request throws|): Handler {
return Before { handler: self, f };
}
[src]
fn before(self, f: |(Request): Request throws|): Handler {
return Before { handler: self, f };
}