leno23 opened a new pull request, #3380:
URL: https://github.com/apache/dubbo-go/pull/3380

   ## What changed
   
   - Expanded Triple header/trailer API comments with concrete usage examples.
   - Documented client-side outgoing headers, server-side incoming headers, 
buffered response headers, response trailers, and immediate streaming headers.
   - Kept the examples aligned with the existing non-generic APIs: 
`NewOutgoingContext`, `AppendToOutgoingContext`, `FromIncomingContext`, 
`SetHeader`, `SetTrailer`, and `SendHeader`.
   
   ## Why
   
   Issue #2422 proposes a clear usage pattern for Triple headers and trailers 
after the non-generic API decision. The functions already exist, but their 
comments did not show the end-to-end pattern or valid `http.Header` literals.
   
   Refs #2422
   
   ## Validation
   
   - `go test ./protocol/triple/triple_protocol -run 
'Test.*Header|Test.*Trailer'`
   - `git diff --check`
   


-- 
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