CoderSerio opened a new pull request, #205:
URL: https://github.com/apache/dubbo-rust/pull/205

   ### 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
   
   <img width="703" height="393" alt="image" 
src="https://github.com/user-attachments/assets/6c5cd743-5256-4356-b766-d7a909794c68";
 />
   
   <img width="686" height="314" alt="image" 
src="https://github.com/user-attachments/assets/4919b4e4-6646-4a39-a1c9-302d6178482c";
 />
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to