Skip to content

Add sample Demonstrates Triple request metadata/attachments and response headers/trailers exposed through http.Header.#1112

Open
Alanxtl wants to merge 5 commits into
apache:mainfrom
Alanxtl:header
Open

Add sample Demonstrates Triple request metadata/attachments and response headers/trailers exposed through http.Header.#1112
Alanxtl wants to merge 5 commits into
apache:mainfrom
Alanxtl:header

Conversation

@Alanxtl

@Alanxtl Alanxtl commented Jun 16, 2026

Copy link
Copy Markdown
Member

No description provided.

@Alanxtl Alanxtl added the enhancement New feature or request label Jun 16, 2026
@AlexStocks AlexStocks requested a review from Copilot June 17, 2026 01:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new triple_header_trailer sample that demonstrates using Dubbo-Go Triple metadata as http.Header, including sending request metadata and observing response headers/trailers via streaming APIs.

Changes:

  • Add a new Go client/server sample showcasing Triple request metadata and stream response headers/trailers (http.Header accessors like Values).
  • Add new protobuf IDL and generated Go code for the sample.
  • Register the sample in the root READMEs and the integration test sample list.

Reviewed changes

Copilot reviewed 8 out of 10 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
triple_header_trailer/README.md English documentation for running and understanding the new sample
triple_header_trailer/README_CN.md Chinese documentation for running and understanding the new sample
triple_header_trailer/proto/greet.proto Defines unary + streaming RPCs used to demonstrate metadata/header/trailer behavior
triple_header_trailer/proto/greet.pb.go Generated protobuf types for the sample
triple_header_trailer/proto/greet.triple.go Generated Triple client/server stubs exposing http.Header metadata APIs
triple_header_trailer/go-server/cmd/main.go Server implementation reading incoming metadata and setting response headers/trailers
triple_header_trailer/go-client/cmd/main.go Client implementation sending outgoing metadata and validating headers/trailers
start_integrate_test.sh Adds the new sample to the full integration test run list
README.md Adds the new sample to the repository sample index
README_CN.md Adds the new sample to the repository sample index (Chinese)
Files not reviewed (2)
  • triple_header_trailer/proto/greet.pb.go: Generated file
  • triple_header_trailer/proto/greet.triple.go: Generated file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
Comment thread README_CN.md
Comment thread triple_header_trailer/go-client/cmd/main.go Outdated
@Alanxtl

Alanxtl commented Jun 26, 2026

Copy link
Copy Markdown
Member Author

blocked by apache/dubbo-go#3446

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

Labels

do not merge enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants