[−][src]Trait actix_web::dev::Handler
Trait defines object that could be registered as route handler
Associated Types
Required Methods
fn handle(&self, req: &HttpRequest<S>) -> Self::Result
Handle request
Implementors
impl<F, R, S> Handler<S> for F where
F: Fn(&HttpRequest<S>) -> R + 'static,
R: Responder + 'static,
[src]
impl<F, R, S> Handler<S> for F where
F: Fn(&HttpRequest<S>) -> R + 'static,
R: Responder + 'static,
Handler for Fn()
type Result = R
fn handle(&self, req: &HttpRequest<S>) -> R
[src]
fn handle(&self, req: &HttpRequest<S>) -> R
impl<S> Handler<S> for NormalizePath
[src]
impl<S> Handler<S> for NormalizePath
type Result = HttpResponse
fn handle(&self, req: &HttpRequest<S>) -> Self::Result
[src]
fn handle(&self, req: &HttpRequest<S>) -> Self::Result
impl<S: 'static, C: 'static + StaticFileConfig> Handler<S> for StaticFiles<S, C>
[src]
impl<S: 'static, C: 'static + StaticFileConfig> Handler<S> for StaticFiles<S, C>
type Result = Result<AsyncResult<HttpResponse>, Error>
fn handle(&self, req: &HttpRequest<S>) -> Self::Result
[src]
fn handle(&self, req: &HttpRequest<S>) -> Self::Result