Skip to content

mapping HTTP headers to RPC request / responses #5457

@toumorokoshi

Description

@toumorokoshi

🚀 Feature

Hello! I'm interested in a way to specify how to map http headers to fields a in gRPC request / response. I see this is noted in the readme as "patches welcome":

Method parameters in HTTP headers.

I'm happy to do some work in this area, but I'd like to sanity check my approach first.

Specifically, I'm hoping there can be some generic way of specifying these, similar to the existing google.api.http headers. I have a proposal I've added here: googleapis/googleapis#1005

Ideally we could go with the Google route, but I am also working on an evolution of the AIPs known as "aep.dev" (https://aep.dev/blog/history-of-aeps/), in which we are proposing our own proto extensions. If there's interest, we could add a similar generic mechanism to describe the extension (example of our fork of long-running operations here: https://github.com/aep-dev/aep-components/blob/main/proto/aep-api/aep/api/operation.proto#L37).

Thoughts on either of those approaches? or would a different approach be preferred?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions