Module actix_web::web[][src]

Essentials helper functions and types for application registration.

Structs

Bytes

A cheaply cloneable and sliceable chunk of contiguous memory.

BytesMut

A unique reference to a contiguous slice of memory.

Data

Application data.

Form

URL encoded payload extractor and responder.

FormConfig

Form extractor configuration.

HttpRequest

An HTTP Request

HttpResponse

An HTTP Response

Json

JSON extractor and responder.

JsonConfig

Json extractor configuration.

Path

Extract typed data from request path segments.

PathConfig

Path extractor configuration

Payload

Extract a request's raw payload stream.

PayloadConfig

Configuration for request payloads.

Query

Extract typed information from the request's query.

QueryConfig

Query extractor configuration.

Readlines

Stream that reads request line by line.

ReqData

Request-local data extractor.

ServiceConfig

Enables parts of app configuration to be declared separately from the app itself. Helpful for modularizing large applications.

Enums

Either

Combines two extractor or responder types into a single type.

EitherExtractError

A composite error resulting from failure to extract an Either<L, R>.

Traits

Buf

Read bytes from a buffer.

BufMut

A trait for values that provide sequential write access to bytes.

Functions

block

Execute blocking function on a thread pool, returns future that resolves to result of the function execution.

delete

Create route with DELETE method guard.

get

Create route with GET method guard.

head

Create route with HEAD method guard.

method

Create route and add method guard.

patch

Create route with PATCH method guard.

post

Create route with POST method guard.

put

Create route with PUT method guard.

resource

Create resource for a specific path.

route

Create route without configuration.

scope

Configure scope for common root path.

service

Create raw service for a specific path.

to

Create a new route and add handler.

trace

Create route with TRACE method guard.