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

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

Build:
Build:
LAST BUILD BRANCH: timeout-middleware
DEFAULT BRANCH: master
Ran 30 Jun 2026 11:57PM 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

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

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

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

1214 of 1263 relevant lines covered (96.12%)

52.31 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28483671834.1 30 Jun 2026 11:57PM UTC 22
96.12
GitHub Action Run
Source Files on build 28483671834
  • 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