Skip to content

Support configuring RESTAPI to GRPC via HTTPFilterPolicy #605

@spacewander

Description

@spacewander

Description

No response

Use Scenes

We can leverage the https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/grpc_json_transcoder_filter#config-http-filters-grpc-json-transcoder filter to do it.

Let's add it as a plugin under https://github.com/mosn/htnn/tree/main/controller/plugins.
The test needs to be added under https://github.com/mosn/htnn/tree/main/controller/internal/translation/testdata/plugins. (Maybe we can move the tests to https://github.com/mosn/htnn/tree/main/controller/plugins in a new PR?)

Don't forget to add e2e test under https://github.com/mosn/htnn/tree/main/e2e/tests.
We can setup a GPRC backend using the image from gateway-api repo.

Feel free to submit the doc in a separate PR if this PR is too big.

Advice

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions