A tour of some of the handlers that exist today
In order for trillium to be a usable web framework, we offer a number of core utilities. However, it is my hope that alternative implementations for at least some of these will exist in order to explore the design space and accommodate different design constraints and tradeoffs. Because not every application will need this functionality, they are each released as distinct crates from the core of trillium.
- Logger
- Cookies
- Sessions
- Template Engines
- Proxy
- Static File Serving
- Websockets
- Router
- http client
- reverse proxy
- use trillium as a reverse proxy for another server
- rustdocs (main)
- example
- method override
- the trillium-method-override crate adds support for using post requests with a query param as a substitute for other http methods
- rustdocs (main)
- example
- head
- the trillium-head crate supports responding to head requests
- rustdocs (main)
- example
- forwarding
- the trillium-forwarding crate supports setting remote ip and protocol from forwarded/x-forwarded-* headers sent by trusted reverse proxies
- rustdocs (main)
- example