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

go-pkgz / rest / 28484253475
96%
master: 96%

Build:
Build:
LAST BUILD BRANCH: timeout-middleware
DEFAULT BRANCH: master
Ran 01 Jul 2026 12:11AM UTC
Jobs 1
Files 22
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

01 Jul 2026 12:10AM UTC coverage: 96.12% (+0.1%) from 96.0%
28484253475

Pull #45

github

paskal
feat: add Timeout middleware

Bounds a request to a given duration via context.WithTimeout and responds with
504 if the deadline is exceeded before the handler writes a response.

Wraps the ResponseWriter to track (atomically) whether the response was already
committed, so a timed-out handler that already produced output is not hit with a
superfluous WriteHeader(504). The wrapper forwards Flush and Hijack (both commit
the response), implements Unwrap so http.ResponseController reaches the underlying
writer's deadline/duplex controls, and treats 1xx informational statuses as
non-committing (except 101 Switching Protocols) so a later timeout can still 504.
Pull Request #45: feat: add Timeout middleware

38 of 38 new or added lines in 1 file covered. (100.0%)

1214 of 1263 relevant lines covered (96.12%)

52.29 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28484253475.1 01 Jul 2026 12:11AM UTC 22
96.12
GitHub Action Run
Source Files on build 28484253475
  • Tree
  • List 22
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #45
  • PR Base - master (#28482628545)
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