Crate gotham

source ·
Expand description

Gotham – A flexible web framework that promotes stability, safety, security and speed.

You can find out more about Gotham, including where to get help, at https://gotham.rs.

We look forward to welcoming you into the Gotham community!

Modules

The error module is nascent. At present, it re-exports types from the failure crate and adds an alias for compatible errors. Future directions for Gotham error types are an ongoing discussion. Feel free to chip in.
Extracts request data into type-safe structs using Serde.
Defines types for handlers, the primary building block of a Gotham application.
Helpers, e.g. for HTTP request handling and response generation
Defines types for Middleware, a reusable unit of logic that can apply to a group of requests by being added to the Pipeline in a Router.
Defines types for a middleware pipeline
Defines the Gotham Router and supporting types.
Defines types for passing request state through Middleware and Handler implementations
Contains helpers for Gotham applications to use during testing.

Functions

Returns a Future used to spawn an Gotham application.
Starts a Gotham application with the default number of threads.
Starts a Gotham application with a designated backing TaskExecutor.
Starts a Gotham application with a designated number of threads.