storage: support user-defined headers passed via the context.Context metadata #5385
Labels
api: storage
Issues related to the Cloud Storage API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Today, the JSON client surface requires that an entire custom HTTPClient be provided to have an end-user's own request headers included in API calls. This is a cumbersome experience. gRPC clients support "headers" via the context.Context metadata of the context provided at call time to ever method. This is a straight forward and clean way to support user-specified header injection. We should consider adding support for it at the client level in the same fashion.
cc: @tritone
The text was updated successfully, but these errors were encountered: