Skip to main content

Module backend

Module backend 

Source
Expand description

The gRPC dispatch target.

Everything else in this crate is inbound protocol translation (Fetch + WebSocket ⇄ gRPC); the only thing that varies between “wrap an in-process service” and “proxy an upstream” is where the translated gRPC call lands. Both destinations are the same interface — tower::Service<http::Request, Response = http::Response> reduced to .oneshot(req) — so the difference is one enum.

Enums§

Backend
Where a translated gRPC request is dispatched.