[][src]Crate thruster

Re-exports

pub use thruster_middleware;
pub use thruster_context;

Modules

server
testing
thruster_proc

Macros

async_middleware

Structs

App

App, the main component of Thruster. The App is the entry point for your application and handles all incomming requests. Apps are also composeable, that is, via the subapp method, you can use all of the methods and middlewares contained within an app as a subset of your app's routes.

BasicContext
Chain
Http
Middleware
MiddlewareChain

The MiddlewareChain is used to wrap a series of middleware functions in such a way that the tail can be accessed and modified later on. This allows Thruster to properly compose pieces of middleware into a single long chain rather than relying on disperate parts.

Request

The request object is the default request object provied by Thruster. If a different server is used, such as Hyper, then you'll need to reference that server's "request" documentation instead.

Response

Traits

Context

A Context is what will be passed between functions in the middleware for the defined routes of Thruster. Since a new context is made for each incomming request, it's important to keep this struct lean and quick, as well as the context_generator associated with it.

RequestWithParams
ThrusterServer

Functions

decode
encode

Type Definitions

MiddlewareNext
MiddlewareReturnValue