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

alexferl / zerohttp
94%

Build:
DEFAULT BRANCH: master
Repo Added 05 Mar 2026 11:18PM UTC
Files 93
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

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • accept
  • altsvc
  • asserts
  • atomic_proxy
  • auto_options
  • benchmarks
  • bind_dupe
  • bind_type_registry
  • bind_valid_fix
  • bool_defaults
  • bool_ptr
  • builtins_refactor
  • cache
  • cache_redis
  • cb_lock
  • circuit_breaker_half_open
  • circuit_double_lock
  • compress_algos
  • compress_dead_code
  • compress_etag
  • compress_flush
  • compress_nil
  • compress_providers
  • compress_write_header
  • config_merge
  • config_refactor
  • context_keys
  • cors
  • coveralls
  • csp_nonce
  • csrf_fix
  • custom_compression
  • custom_logs
  • dedicated_metrics
  • dive
  • docs
  • docs_clean
  • docs_idem
  • errors
  • etag
  • examples
  • excluded_included
  • fh_size
  • fix_compress
  • fix_docs
  • fix_examples
  • fix_idem_key
  • fix_issues
  • fix_path_matches
  • fix_readme
  • fixes
  • flush
  • golangci-lint
  • head_fix
  • headers
  • healthcheck_ctx
  • hmac_auth
  • hmac_auth_fix
  • hmac_auth_key
  • host_valid
  • hsts_example
  • http_error_log
  • https_redir
  • idempotency
  • impl
  • json_error_log
  • jsonpath
  • jwt_auth
  • jwt_metric_fix
  • jwt_storage
  • jwtauth_cookies
  • layout_refactor
  • log_colours
  • log_filtering
  • master
  • mediatype
  • mediatype_fix
  • mediatype_func
  • mediatype_header
  • metrics
  • metrics_cardinality
  • metrics_example
  • mw
  • pagination
  • pagination_defaults
  • panic_errors
  • perf
  • perf_router
  • pprof
  • pprof_fix
  • prefix_keys
  • problem-detail-migration
  • rate_limit_fix
  • rate_limit_key
  • rate_limit_lock
  • readme
  • redirect_https
  • redundant_alia
  • refactor
  • refactor_config
  • render_valid
  • request_id_gen
  • request_logger
  • request_logger_max_size
  • reverse_proxy
  • reverse_proxy_cleanup
  • router_dupe
  • router_fs
  • router_race
  • rwutil
  • server_fixes
  • server_refactor
  • server_split
  • sse_fix
  • sse_fixes
  • sse_race
  • static
  • static_file_handler
  • storage
  • test_refactor
  • tracer
  • tracing
  • type_registry
  • update_deps
  • valid_anyof
  • valid_zero
  • validation
  • validator_refactor
  • validator_registry
  • variadic_config

07 Apr 2026 03:19AM UTC coverage: 93.968% (+0.01%) from 93.958%
24062594982

push

github

web-flow
feat: default error responses to JSON instead of plain text (#169)

Change the default behavior when no Accept header is present to return
application/problem+json instead of text/plain. This affects:

- All middleware error responses (circuitbreaker, cors, csrf, host,
  idempotency, jwtauth, ratelimit, recover, timeout)
- Router default 404 Not Found and 405 Method Not Allowed handlers

The AcceptsJSON() function now returns true when the Accept header is
empty, making JSON the default response format. Clients can still
request plain text by sending Accept: text/plain.

Updated all tests to reflect the new default behavior and added
explicit tests for plain text responses when requested.

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

32 of 32 new or added lines in 3 files covered. (100.0%)

2 existing lines in 1 file now uncovered.

10593 of 11273 relevant lines covered (93.97%)

440.15 hits per line

Relevant lines Covered
Build:
Build:
11273 RELEVANT LINES 10593 COVERED LINES
440.15 HITS PER LINE
Source Files on master
  • Tree
  • List 93
  • Changed 5
  • Source Changed 3
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
24062594982 master feat: default error responses to JSON instead of plain text (#169) Change the default behavior when no Accept header is present to return application/problem+json instead of text/plain. This affects: - All middleware error responses (circuitbrea... push 07 Apr 2026 03:20AM UTC web-flow github
93.97
24062537653 errors Merge 5d96650f5 into d83cbb434 Pull #169 07 Apr 2026 03:17AM UTC web-flow github
93.91
23970244593 master feat(pagination): make defaults configurable (#168) Add `DefaultPerPage` (25) and `DefaultMaxPerPage` (100) package-level variables that can be changed at runtime to configure pagination defaults. BREAKING CHANGE: Default per_page changed from 2... push 04 Apr 2026 03:21AM UTC web-flow github
93.96
23970210901 pagination_defaults Merge 80e24ef2d into 6cbba605a Pull #168 04 Apr 2026 03:18AM UTC web-flow github
93.91
23969967402 master feat(mediatype): add ResponseTypeFunc for dynamic response headers (#167) Replace static ResponseTypeValue with ResponseTypeFunc that transforms the negotiated media type into the response header value. This enables the header to reflect what was... push 04 Apr 2026 03:03AM UTC web-flow github
93.93
23969927009 mediatype_func Merge 9cbbdaee5 into ca10287f4 Pull #167 04 Apr 2026 03:01AM UTC web-flow github
93.91
23969338537 master feat(mediatype): add response media type header config (#166) Add ResponseTypeHeader and ResponseTypeValue to allow setting a response header (e.g., X-App-Media-Type) with the effective media type. Signed-off-by: alexferl <me@alexferl.com> push 04 Apr 2026 02:24AM UTC web-flow github
93.94
23969297715 mediatype_header Merge f4b5c45fb into c8e68990b Pull #166 04 Apr 2026 02:22AM UTC web-flow github
94.02
23968847330 master fix(mediatype): correct DefaultType to set Accept header on request (#165) * fix(mediatype): correct DefaultType to set Accept header on request The DefaultType config was incorrectly trying to set the response Content-Type via a response writer... push 04 Apr 2026 01:55AM UTC web-flow github
93.94
23968801626 mediatype_fix Merge 3ba9f8d4e into 6ac172367 Pull #165 04 Apr 2026 01:52AM UTC web-flow github
93.99
See All Builds (345)
  • Repo on GitHub
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