Skip to content

Ftr: add raw unary trailer support to core#205

Open
CoderSerio wants to merge 23 commits into
apache:mainfrom
CoderSerio:codex/raw-unary-runtime-core
Open

Ftr: add raw unary trailer support to core#205
CoderSerio wants to merge 23 commits into
apache:mainfrom
CoderSerio:codex/raw-unary-runtime-core

Conversation

@CoderSerio

Copy link
Copy Markdown

What is changed

  • Add TripleClient::raw_unary_with_trailers to expose HTTP/2 response trailers separately from response metadata.
  • Update dubbo-rs-core::RawTripleClient::unary to return response headers and trailers as separate RawMetadata fields.
  • Add raw unary integration coverage for response header/trailer separation.
  • Keep the existing TripleClient::raw_unary behavior compatible by merging trailers into metadata as before.

Why

dubbo-rs-core is intended to provide a stable, byte-oriented core SDK that can be embedded by other runtimes.

One important use case is Dubbo JS. Instead of reimplementing all Triple transport and governance capabilities in JavaScript, Dubbo JS can wrap selected dubbo-rust core APIs through N-API and reuse the Rust runtime. To make that boundary correct, the raw unary API needs to preserve Triple/gRPC semantics, including keeping response headers and trailers separate.

Test

image image

@CoderSerio

Copy link
Copy Markdown
Author

The CI license checker failure seems unrelated to this PR....🤨

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant