Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
trillium
🌱🦀🌱 Trillium is a composable toolkit for building internet applications with async rust
"Building a middleware from scratch" walks through how to build Timeout as it exists in Tower today, without taking any shortcuts.
tower-http has several simple middleware if you're looking for more examples. AddExtension, SetRequestHeader and SetResponseHeader are good places to start. If you want to see something that goes all-in then Trace is probably the most complex middleware in tower-http.
Any thoughts on (trillium)[https://github.com/trillium-rs/trillium]? Looks like you're fulfilling similar niches.
Related posts
- Collection of trait implementations with associated types (GATs?)
- dd-trace-layer - A web application middleware for sending Datadog's trace
- GCP firestore and logging SDK in rust
- How to schedule and run cron jobs in Rust using apalis
- tower-lsp 0.16.0 — Lightweight framework for building LSP servers