# [−][src]Trait actix_web::server::HttpHandler

    pub trait HttpHandler: 'static {
        type Task: HttpHandlerTask;
        fn handle(&self, req: Request) -> Result<Self::Task, Request>;
    }

Low level http request handler

## Associated Types

### `type Task: HttpHandlerTask`

Request handling task

## Required Methods

### `fn handle(&self, req: Request) -> Result<Self::Task, Request>`

Handle request

## Implementations on Foreign Types

###

`impl HttpHandler for Box<HttpHandler<Task = Box<HttpHandlerTask>>>`

[src]

#### `type Task = Box<HttpHandlerTask>`

####

`fn handle(&self, req: Request) -> Result<Box<HttpHandlerTask>, Request>`

[src]

###

`impl<A: HttpHandler> HttpHandler for (A,)`

[src]

#### `type Task = HttpHandlerTask1<A>`

####

`fn handle(&self, req: Request) -> Result<Self::Task, Request>`

[src]

###

`impl<A: HttpHandler, B: HttpHandler> HttpHandler for (A, B)`

[src]

#### `type Task = HttpHandlerTask2<A, B>`

####

`fn handle(&self, req: Request) -> Result<Self::Task, Request>`

[src]

###

`impl<A: HttpHandler, B: HttpHandler, C: HttpHandler> HttpHandler for (A, B, C)`

[src]

#### `type Task = HttpHandlerTask3<A, B, C>`

####

`fn handle(&self, req: Request) -> Result<Self::Task, Request>`

[src]

###

`impl<A: HttpHandler, B: HttpHandler, C: HttpHandler, D: HttpHandler> HttpHandler for (A, B, C, D)`

[src]

#### `type Task = HttpHandlerTask4<A, B, C, D>`

####

`fn handle(&self, req: Request) -> Result<Self::Task, Request>`

[src]

###

`impl<A: HttpHandler, B: HttpHandler, C: HttpHandler, D: HttpHandler, E: HttpHandler> HttpHandler for (A, B, C, D, E)`

[src]

#### `type Task = HttpHandlerTask5<A, B, C, D, E>`

####

`fn handle(&self, req: Request) -> Result<Self::Task, Request>`

[src]

###

`impl<A: HttpHandler, B: HttpHandler, C: HttpHandler, D: HttpHandler, E: HttpHandler, F: HttpHandler> HttpHandler for (A, B, C, D, E, F)`

[src]

#### `type Task = HttpHandlerTask6<A, B, C, D, E, F>`

####

`fn handle(&self, req: Request) -> Result<Self::Task, Request>`

[src]

###

`impl<A: HttpHandler, B: HttpHandler, C: HttpHandler, D: HttpHandler, E: HttpHandler, F: HttpHandler, G: HttpHandler> HttpHandler for (A, B, C, D, E, F, G)`

[src]

#### `type Task = HttpHandlerTask7<A, B, C, D, E, F, G>`

####

`fn handle(&self, req: Request) -> Result<Self::Task, Request>`

[src]

###

`impl<A: HttpHandler, B: HttpHandler, C: HttpHandler, D: HttpHandler, E: HttpHandler, F: HttpHandler, G: HttpHandler, H: HttpHandler> HttpHandler for (A, B, C, D, E, F, G, H)`

[src]

#### `type Task = HttpHandlerTask8<A, B, C, D, E, F, G, H>`

####

`fn handle(&self, req: Request) -> Result<Self::Task, Request>`

[src]

###

`impl<A: HttpHandler, B: HttpHandler, C: HttpHandler, D: HttpHandler, E: HttpHandler, F: HttpHandler, G: HttpHandler, H: HttpHandler, I: HttpHandler> HttpHandler for (A, B, C, D, E, F, G, H, I)`

[src]

#### `type Task = HttpHandlerTask9<A, B, C, D, E, F, G, H, I>`

####

`fn handle(&self, req: Request) -> Result<Self::Task, Request>`

[src]

###

`impl<A: HttpHandler, B: HttpHandler, C: HttpHandler, D: HttpHandler, E: HttpHandler, F: HttpHandler, G: HttpHandler, H: HttpHandler, I: HttpHandler, J: HttpHandler> HttpHandler for (A, B, C, D, E, F, G, H, I, J)`

[src]

#### `type Task = HttpHandlerTask10<A, B, C, D, E, F, G, H, I, J>`

####

`fn handle(&self, req: Request) -> Result<Self::Task, Request>`

[src]

## Implementors

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g. `str,u8` or `String,struct:Vec,test`)