Skip to content

feat(context): add Protocol Buffers support to content negotiation - #4423

Merged
appleboy merged 1 commit into
gin-gonic:masterfrom
1911860538:context/negotiate
Nov 7, 2025
Merged

appleboy merged 1 commit into
gin-gonic:masterfrom
1911860538:context/negotiate

Conversation

@1911860538

Copy link
Copy Markdown
Contributor

This change allows API clients to receive Protocol Buffers encoded responses,
via standard content negotiation when using the Context.Negotiate method.

@codecov

codecov Bot commented Nov 6, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.96%. Comparing base (3dc1cd6) to head (bde594c).
⚠️ Report is 201 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4423      +/-   ##
==========================================
- Coverage   99.21%   98.96%   -0.25%     
==========================================
  Files          42       44       +2     
  Lines        3182     2902     -280     
==========================================
- Hits         3157     2872     -285     
- Misses         17       19       +2     
- Partials        8       11       +3     
Flag Coverage Δ
?
--ldflags="-checklinkname=0" -tags sonic 98.95% <100.00%> (?)
-tags go_json 98.88% <100.00%> (?)
-tags nomsgpack 98.95% <100.00%> (?)
go-1.18 ?
go-1.19 ?
go-1.20 ?
go-1.21 ?
go-1.24 98.96% <100.00%> (?)
go-1.25 98.96% <100.00%> (?)
macos-latest 98.96% <100.00%> (-0.25%) ⬇️
ubuntu-latest 98.96% <100.00%> (-0.25%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@appleboy appleboy added this to the v1.12 milestone Nov 7, 2025
@appleboy
appleboy merged commit acc55e0 into gin-gonic:master Nov 7, 2025
26 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants