Skip to main content

Module http

Module http 

Available on crate features http and tower only.
Expand description

HTTP tower interop.

TowerHttpServiceAdapter adapts a tower::Service that speaks the hyperium http::Request/http::Response into a rama Service, converting the head via rama-http-hyperium and wrapping the bodies (rama Body ↔ [http_body::Body]) so neither side is copied.

Structs§

TowerHttpServiceAdapter
Adapter to use a tower HTTP tower::Service — operating on http::Request/http::Response — as a rama Service.