A collection of crates that provide examples of handlers, the primary building block of a Gotham web framework application.
A Handler
is an asynchronous function, taking a State
value which
represents the request and related runtime state. It completes by resolving to
a HTTP response.
Developers working with the Gotham web framework create handlers and via the
Router
map them to individual routes. The Router
then invokes the
appropriate Handler
to process incoming requests.
We recommend reviewing our handler examples in the order shown below:
- Request Data - Accessing common request information
- Stateful Handlers - Keeping state in a handler
- Simple Async Handlers - Async Request Handlers 101
- Simple Async Handlers (.await version) - Request Handlers that use async/.await
- Async Handlers - More complicated async request handlers
You can get help for the Gotham web framework at:
Licensed under your option of:
The following policies guide participation in our project and our community: