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

alexferl / zerohttp / 23967486078
94%

Build:
DEFAULT BRANCH: master
Ran 04 Apr 2026 12:40AM 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 12:39AM UTC coverage: 93.943% (-0.002%) from 93.945%
23967486078

push

github

web-flow
feat(mediatype): add media type negotiation middleware with wildcard support (#164)

Adds new mediatype middleware for validating Accept and Content-Type
headers against patterns with wildcard and suffix matching.

Features:
- Pattern matching with * wildcards (e.g., application/vnd.*+json)
- Suffix matching for +json, +xml, etc.
- Optional Content-Type validation on requests
- DefaultType response header when client sends */*
- Path exclusion/inclusion support

Includes example demonstrating API versioning with vendor media types.

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

156 of 161 new or added lines in 1 file covered. (96.89%)

19 existing lines in 4 files now uncovered.

10547 of 11227 relevant lines covered (93.94%)

388.83 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
96.89
middleware/mediatype/media_type.go

Coverage Regressions

Lines Coverage ∆ File
10
92.97
0.0% middleware/reverseproxy/reverse_proxy.go
5
88.24
-2.45% server_tls.go
2
82.89
-0.88% internal/bind/registry.go
2
95.24
0.0% sse/sse.go
Jobs
ID Job ID Ran Files Coverage
1 23967486078.1 04 Apr 2026 12:40AM UTC 93
93.94
GitHub Action Run
Source Files on build 23967486078
  • Tree
  • List 93
  • Changed 7
  • Source Changed 4
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23967486078
  • 6ac17236 on github
  • Prev Build on master (#23923307335)
  • Next Build on master (#23968847330)
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