[][src]Crate rocket4

Modules

config

Application configuration and configuration parameter retrieval.

data

Types and traits for handling incoming body data.

error

Types representing various errors that can occur in a Rocket application.

fairing

Fairings: callbacks at attach, launch, request, and response time.

handler

Types and traits for request and error handlers and their return values.

http

Types that map to concepts in HTTP.

local

Structures for local dispatching of requests, primarily for testing.

outcome

Success, failure, and forward handling.

request

Types and traits for request parsing and handling.

response

Types and traits to build and send responses.

Structs

Catcher

An error catching route.

Rocket

The main Rocket type: used to mount routes and catchers and launch the application.

Route

A route: a method, its handler, path, rank, and format/media type.

StaticCatchInfo

Information generated by the catch attribute during codegen.

StaticRouteInfo

Information generated by the route attribute during codegen.

Functions

custom

Alias to Rocket::custom(). Creates a new instance of Rocket with a custom configuration.

ignite

Alias to Rocket::ignite() Creates a new instance of Rocket.