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

alexferl / zerohttp / 23857283775
94%

Build:
DEFAULT BRANCH: master
Ran 01 Apr 2026 03:44PM UTC
Jobs 1
Files 91
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 Apr 2026 03:43PM UTC coverage: 93.812% (-0.03%) from 93.844%
23857283775

push

github

web-flow
feat(tls): add built-in HTTP to HTTPS redirect and default server helpers (#157)

Add `RedirectHTTP` option to `TLSConfig` that automatically redirects
all HTTP traffic to HTTPS when both servers are running. The redirect
handler correctly uses the configured HTTPS port (omitting port 443).

Add `DefaultHTTPServer()` and `DefaultTLSServer()` functions for
customizing specific server fields while keeping other defaults. Both
are now used internally when creating servers.

Also includes:
- Add `DefaultMaxHeaderBytes` constant (16 KB)
- Add comment explaining IdleTimeout fallback behavior
- Fix doc example (correct `metrics.Config` type, timeouts in `Server`)
- Add `writeTestCertFiles()` test helper and refactor all TLS tests
- Update TLS example to demonstrate the new built-in redirect

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

49 of 51 new or added lines in 2 files covered. (96.08%)

5 existing lines in 2 files now uncovered.

10249 of 10925 relevant lines covered (93.81%)

473.01 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
89.36
-0.08% server.go

Coverage Regressions

Lines Coverage ∆ File
3
96.9
-0.58% router.go
2
95.24
0.0% sse/sse.go
Jobs
ID Job ID Ran Files Coverage
1 23857283775.1 01 Apr 2026 03:44PM UTC 91
93.81
GitHub Action Run
Source Files on build 23857283775
  • Tree
  • List 91
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23857283775
  • b3a6903f on github
  • Prev Build on master (#23725360712)
  • Next Build on master (#23858382049)
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