Module rama::service

source ·
Expand description

async fn serve(&self, Context<S>, Request) -> Result<Response, Error>

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§

Modules§

Structs§

Traits§

  • A Service that produces rama services, to serve requests with, be it transport layer requests or application layer requests.