Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(http/body): Body middleware bridging http-body 0.4 and 1.0
hyper 1.0 migrated to a new definition of the `Body` trait, which exposes a single `poll_frame(..)` method, rather than the two `poll_data(..)` and `poll_trailers(..)` methods previously required of implementors. this commit introduces a new `linkerd-http-body` crate. this crate allows callers to wrap a "legacy" body that implements the 0.4 version of `http_body::Body` in a middleware to incrementally adopt the new 1.0 interface. see <linkerd/linkerd2#8733>. Signed-off-by: katelyn martin <kate@buoyant.io>
- Loading branch information