Expand description
Essentials helper functions and types for application registration.
Request Extractors
Data
: Application data itemReqData
: Request-local data itemPath
: URL path parameters / dynamic segmentsQuery
: URL query parametersHeader
: Typed headerJson
: JSON payloadForm
: URL-encoded payloadBytes
: Raw payload
Responders
Structs
- A cheaply cloneable and sliceable chunk of contiguous memory.
- A unique reference to a contiguous slice of memory.
- Application data wrapper and extractor.
- URL encoded payload extractor and responder.
Form
extractor configuration.- Extract typed headers from the request.
- JSON extractor and responder.
Json
extractor configuration.- Extract typed data from request path segments.
- Path extractor configuration
- Extract a request’s raw payload stream.
- Configuration for request payloads.
- Extract typed information from the request’s query.
- Query extractor configuration.
- Stream that reads request line by line.
- An HTTP service for redirecting one path to another path or URL.
- Request-local data extractor.
- Enables parts of app configuration to be declared separately from the app itself. Helpful for modularizing large applications.
- Future that resolves to some
T
when parsed from a URL encoded payload.
Enums
- Combines two extractor or responder types into a single type.
- Future that resolves to some
T
when parsed from a JSON payload.
Traits
- Read bytes from a buffer.
- A trait for values that provide sequential write access to bytes.
Functions
- Executes blocking function on a thread pool, returns future that resolves to result of the function execution.
- Creates a new route with
DELETE
method guard. - Creates a new route with
GET
method guard. - Creates a new route with
HEAD
method guard. - Creates a new route with specified method guard.
- Creates a new route with
PATCH
method guard. - Creates a new route with
POST
method guard. - Creates a new route with
PUT
method guard. - Create a relative or absolute redirect.
- Creates a new resource for a specific path.
- Creates a new un-configured route.
- Creates scope for common path prefix.
- Creates a raw service for a specific path.
- Creates a new any-method route with handler.
- Creates a new route with
TRACE
method guard.