googleapis / googleapis/google-cloud-java

[sdk-platform-java] Investigate how to support `extraHeaders` for gRPC/ HttpJson

Open
#12,493 0 comments 0 reactions 0 assignees View on GitHub
priority: p3 type: feature request
Dominant language
Java
Stars
2.1k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
157

Description

For HttpJson: https://github.com/googleapis/sdk-platform-java/blob/main/gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/HttpJsonMetadata.java#L43
For gRPC: https://github.com/grpc/grpc-java/blob/master/api/src/main/java/io/grpc/Metadata.java

Metadata is implemented with as a `Map>` as a key can have multiple values.

We want to investigate how properly support or expand support for extraHeaders / Metadata values. Look into the use cases for having multiple values in each key and how to pick which value to use.

Contributor guide

Open the contributing guide

Research direction

Read HttpJsonMetadata.java in gax-httpjson and Metadata.java in grpc-java first. Investigate the stated use cases for multiple values per key and how extraHeaders or metadata values should be selected. Done means documenting a clear support approach and its expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
grpc, java
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.