# actix_web::dev - Rust
API documentation for the Rust `dev` mod in crate `actix_web`.
Keywords: rust, rustlang, rust-lang, dev

# [−] [src] Module actix_web::dev

The `actix-web` prelude for library developers

The purpose of this module is to alleviate imports of many common actix traits by adding a glob import to the top of actix heavy modules:

    use actix_web::dev::*;

## Structs

AsyncResult | Represents async result
ConnectionInfo | `HttpRequest` connection information
Drain | Consume a future
FormConfig | Form extractor configuration
HttpResponseBuilder | An HTTP response builder
JsonBody | Request payload json parser that resolves to a deserialized `T` value.
JsonConfig | Json extractor configuration
MessageBody | Future that resolves to a complete http message body.
Params | Route match information
Payload | Buffered stream of bytes chunks
PayloadBuffer | Payload buffer
PayloadConfig | Payload configuration for request's payload.
Readlines | Stream to read request line by line.
Resource | Resource is an entry in route table which corresponds to requested URL.
ResourceDef | Resource type describes an entry in resources table
ResourceInfo | Information about current resource
Route | Resource route definition
Router | Interface for application router.
UrlEncoded | Future that resolves to a parsed urlencoded values.

## Enums

ResourceType | Resource type

## Traits

FromParam | A trait to abstract the idea of creating a new instance of a type from a path parameter.
Handler | Trait defines object that could be registered as route handler

## Type Definitions

BodyStream | Type represent streaming body

# 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`)