Module spa_server::re_export[][src]

re-export all the pub symbols from actix-web, no need to add additional actix-web dependency in Cargo.toml.

Modules

body

Traits and structures to aid consuming and writing HTTP payloads.

cookie

HTTP cookie parsing and cookie jar management.

dev

The actix-web prelude for library developers

error

Error and Result module

guard

Route match guards.

http

Various HTTP related types.

middleware

Commonly used middleware.

rt

Tokio-based single-threaded async runtime for the Actix ecosystem.

test

Various helpers for Actix applications to use during testing.

web

Essentials helper functions and types for application registration.

Macros

services

Macro helping register different types of services at the sametime.

Structs

App

Application builder - structure that follows the builder pattern for building application instances.

CookieIdentityPolicy

Use cookies for request identity storage.

Cors

Builder for CORS middleware.

Directory

A directory; responds with the generated directory listing.

Error

General purpose actix web error.

Files

Static files handling service.

FilesService

Assembled file serving service.

HttpRange

HTTP Range header representation.

HttpRequest

An HTTP Request

HttpResponse

An HTTP Response

HttpServer

An HTTP Server.

Identity

The extractor type to obtain your identity from a request.

IdentityService

Request identity middleware

NamedFile

A file with an associated name.

Resource

Resource is an entry in resources table which corresponds to requested URL.

Route

Resource route definition

Scope

Resources scope.

Enums

CorsError

Errors that can occur when processing CORS guarded requests.

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

FromRequest

Trait implemented by types that can be extracted from request.

HttpMessage

Trait that implements general purpose operations on HTTP messages.

IdentityPolicy

Identity policy definition.

RequestIdentity

Helper trait that allows to get Identity.

Responder

Trait implemented by types that can be converted to an HTTP response.

ResponseError

Error that can be converted to Response

Functions

file_extension_to_mime

Return the MIME type associated with a filename extension (case-insensitive). If ext is empty or no associated type for the extension was found, returns the type application/octet-stream.

Type Definitions

Result

A specialized std::result::Result for actix web operations

Attribute Macros

connect

Creates route handler with actix_web::guard::Connect.

connect
delete

Creates route handler with actix_web::guard::Delete.

delete
get

Creates route handler with actix_web::guard::Get.

get
head

Creates route handler with actix_web::guard::Head.

head
main

Marks async main function as the actix system entry-point.

main
options

Creates route handler with actix_web::guard::Options.

options
patch

Creates route handler with actix_web::guard::Patch.

patch
post

Creates route handler with actix_web::guard::Post.

post
put

Creates route handler with actix_web::guard::Put.

put
route

Creates resource handler, allowing multiple HTTP method guards.

trace

Creates route handler with actix_web::guard::Trace.

trace