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

go-pkgz / rest / 28483671834 / 1
96%
master: 96%

Build:
Build:
LAST BUILD BRANCH: timeout-middleware
DEFAULT BRANCH: master
Ran 30 Jun 2026 11:57PM UTC
Files 22
Run time 0s
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

30 Jun 2026 11:56PM UTC coverage: 96.12% (+0.1%) from 96.0%
28483671834.1

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 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 mark the response committed), implements
Unwrap so http.ResponseController can reach the underlying writer's deadline/duplex
controls, and treats 1xx informational statuses as non-committing so a later timeout
can still write its 504.
Pull Request #45: feat: add Timeout middleware

1214 of 1263 relevant lines covered (96.12%)

52.31 hits per line

Source Files on job 28483671834.1
  • Tree
  • List 22
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 28483671834
  • 3c3a45f3 on github
  • Prev Job for on timeout-middleware (#28482628545.1)
  • Next Job for on timeout-middleware (#28484253475.1)
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