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

alexferl / zerohttp / 23037523287
94%

Build:
DEFAULT BRANCH: master
Ran 13 Mar 2026 05:26AM UTC
Jobs 1
Files 79
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

13 Mar 2026 05:25AM UTC coverage: 93.119% (-0.1%) from 93.267%
23037523287

push

github

web-flow
feat: add idempotency middleware and extract reusable ResponseBuffer (#91)

* feat: add idempotency middleware and extract reusable ResponseBuffer

  - Add idempotency middleware with configurable IdempotencyStore interface
  - Extract ResponseBuffer to internal/rwutil for shared use by cache/etag/idempotency
  - Optimize cache key generation: SHA-256 → strings.Builder with Grow (78% faster)
  - Update JWT TokenStore interface for consistency

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

* perf: add strings.Builder pre-allocation for HMAC and cache middleware

  Add b.Grow() calls to buildCanonicalRequest functions in hmac_signer.go
  and hmac_auth.go to reduce allocations. Improves HMAC auth by up to
  24% with 23-30% fewer allocations.

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

* fix: prevent duplicate headers in cache and idempotency middleware

  Both middleware were replaying cached headers on top of headers already
  set by other middleware (security headers, request IDs). Now they skip
  replaying any header key that's already present in the response.

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

---------

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

495 of 554 new or added lines in 8 files covered. (89.35%)

8 existing lines in 3 files now uncovered.

8986 of 9650 relevant lines covered (93.12%)

44.39 hits per line

Uncovered Changes

Lines Coverage ∆ File
34
83.25
middleware/idempotency.go
13
87.04
2.29% middleware/cache.go
12
95.01
-1.4% middleware/etag.go

Coverage Regressions

Lines Coverage ∆ File
4
95.01
-1.4% middleware/etag.go
2
87.04
2.29% middleware/cache.go
2
93.83
-0.51% sse.go
Jobs
ID Job ID Ran Files Coverage
1 23037523287.1 13 Mar 2026 05:26AM UTC 79
93.12
GitHub Action Run
Source Files on build 23037523287
  • Tree
  • List 79
  • Changed 6
  • Source Changed 5
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23037523287
  • 9c6915d3 on github
  • Prev Build on master (#23024894965)
  • Next Build on master (#23061758916)
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