Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to customize protobuff media type header #613

Merged
merged 2 commits into from
Nov 10, 2022

Conversation

altro3
Copy link
Contributor

@altro3 altro3 commented Nov 4, 2022

Sometimes I don't want to give anyone information about my API format and use a custom content-type/accept header value for it. Now you can replace the default ProtobufferCodec and set any media types you want.

I also added a second default media type value, application/protobuf, because it is used by other libraries such as guava.

This is rebased PR (copy of #601), but from master branch

@altro3 altro3 changed the base branch from master to 3.4.x November 4, 2022 12:26
@graemerocher graemerocher merged commit 87e0fdd into micronaut-projects:3.4.x Nov 10, 2022
@graemerocher graemerocher added the type: enhancement New feature or request label Nov 10, 2022
@graemerocher
Copy link
Contributor

Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants