Skip to content

Commit

Permalink
feat(http/body): Body middleware bridging http-body 0.4 and 1.0
Browse files Browse the repository at this point in the history
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
cratelyn committed Dec 18, 2024
1 parent 17e52f9 commit 62bd883
Show file tree
Hide file tree
Showing 4 changed files with 318 additions and 65 deletions.
Loading

0 comments on commit 62bd883

Please sign in to comment.