grpc / grpc/grpc-rust

How can I use different codec based on the 'Content-Type' header?

Open
#851 7 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
12.5k
Forks
1.3k
Avg merge
4d 7h
Merged PRs (30d)
24

Description

## Feature Request
Is there any way I can use different codec implementations based on the 'Content-Type' header?

### Motivation
My requirement is to make this grpc service support multiple protocols (codec), which is based on the content-type parameter of the request header.

### Proposal

Codec trait is too complicated, I have no idea. Just give me some tips.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.