Expand description
async fn serve(&self, Context<S>, Request) -> Result<Response, Error>
Crate used by the end-user rama
crate and rama
crate authors alike.
Learn more about rama
:
- Github: https://github.com/plabayo/rama
- Book: https://ramaproxy.org/book/
§rama service
Heavily inspired by tower-service and the vast Tokio ecosystem which makes use of it.
Initially the goal was to rely on tower-service
directly, but it turned out to be
too restrictive and difficult to work with, for the use cases we have in Rama.
See https://ramaproxy.org/book/faq.html for more information regarding this and more.
Re-exports§
pub use context::Context;
pub use service::Service;
pub use layer::Layer;
pub use ::rama_error as error;
Modules§
- Combinators for working with or in function of services.
- Context passed to and between services as input.
- Shutdown management for graceful shutdown of async-first applications.
- Layer type and utilities.
- matcher utilities for any middleware where need to match on incoming requests within a given
Context
- Runtime utilities used by Rama.
- Service type and utilities.
- telemetry
telemetry
Rama telemetry modules. - Utilities to work with usernames and pull information out of it.