Crate thruster[][src]

Re-exports

pub use context::basic_context::BasicContext;

Modules

context
errors
middleware
parser
testing

Macros

async_middleware
async_middlewarez
generate_tuples
m
map_try
pinbox

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.

Http
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
Server

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

MiddlewareFn
MiddlewareNext
MiddlewareResult
MiddlewareReturnValue

Attribute Macros

middleware_fn