• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

alexferl / zerohttp / 23969967402
94%

Build:
DEFAULT BRANCH: master
Ran 04 Apr 2026 03:03AM UTC
Jobs 1
Files 93
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Apr 2026 03:02AM UTC coverage: 93.931% (-0.01%) from 93.943%
23969967402

push

github

web-flow
feat(mediatype): add ResponseTypeFunc for dynamic response headers (#167)

Replace static ResponseTypeValue with ResponseTypeFunc that transforms
the negotiated media type into the response header value. This enables
the header to reflect what was actually negotiated (e.g., app.v2 when
client requests v2) rather than a static construction-time value.

Changes:
- Config.ResponseTypeValue → Config.ResponseTypeFunc func(string) string
- Compute effective type at request time based on matched Accept header
- Add VendorShortType helper: "application/vnd.app.v1+json" -> "app.v1"
- Add findMatchingType to determine which allowed type matched

Signed-off-by: alexferl <me@alexferl.com>

31 of 36 new or added lines in 1 file covered. (86.11%)

2 existing lines in 1 file now uncovered.

10571 of 11254 relevant lines covered (93.93%)

421.17 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
94.68
-2.19% middleware/mediatype/media_type.go

Coverage Regressions

Lines Coverage ∆ File
2
95.24
0.0% sse/sse.go
Jobs
ID Job ID Ran Files Coverage
1 23969967402.1 04 Apr 2026 03:03AM UTC 93
93.93
GitHub Action Run
Source Files on build 23969967402
  • Tree
  • List 93
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23969967402
  • 6cbba605 on github
  • Prev Build on master (#23969338537)
  • Next Build on master (#23970244593)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc