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

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

Build:
Build:
LAST BUILD BRANCH: timeout-middleware
DEFAULT BRANCH: master
Ran 01 Jul 2026 12:36AM 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:35AM UTC coverage: 96.202% (+0.2%) from 96.0%
28485193325

Pull #45

github

paskal
feat: add Timeout middleware

Enforces a maximum request duration: the next handler runs in a goroutine with a
context deadline, and if it has not finished by the deadline the middleware responds
with 504 Gateway Timeout at the deadline — even for a handler that ignores the context.

Modeled on net/http.TimeoutHandler: the handler's output is buffered and written
through on success; if the deadline fires first the buffered output is discarded, a
504 is sent, and further handler writes return http.ErrHandlerTimeout. A canceled
parent context stops the handler without sending a 504. Panics propagate. Because the
response is buffered, http.Flusher and http.Hijacker are not supported (documented).
Pull Request #45: feat: add Timeout middleware

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

1241 of 1290 relevant lines covered (96.2%)

51.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28485193325.1 01 Jul 2026 12:35AM UTC 22
96.2
GitHub Action Run
Source Files on build 28485193325
  • 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