• 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: master
CHANGE BRANCH
x
Reset
  • master
  • 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
  • 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
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
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
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
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
23967486078 master feat(mediatype): add media type negotiation middleware with wildcard support (#164) Adds new mediatype middleware for validating Accept and Content-Type headers against patterns with wildcard and suffix matching. Features: - Pattern matching wit... push 04 Apr 2026 12:40AM UTC web-flow github
93.94
23923307335 master refactor: add MiddlewareFunc type and standardize config docs (#162) - Add MiddlewareFunc type alias for func(http.Handler) http.Handler - Update Router interface and implementation to use MiddlewareFunc consistently - Standardize all middleware ... push 02 Apr 2026 09:41PM UTC web-flow github
93.95
23909701469 master feat(pagination): add pagination package with offset-based pagination (#161) * feat(pagination): add pagination package with offset-based pagination Add pagination package supporting: - Offset-based pagination with page/per_page query params - S... push 02 Apr 2026 04:03PM UTC web-flow github
93.93
23905617253 master fix(httpx): move Proxy-Authorization to request headers and pagination (#160) * fix(httpx): move Proxy-Authorization to request headers and pagination headers. Signed-off-by: alexferl <me@alexferl.com> * fmt Signed-off-by: alexferl <me@alexfer... push 02 Apr 2026 02:31PM UTC web-flow github
93.8
23868250042 master feat(validator): add anyof validator for slices (#159) Add anyof validator that checks if at least one element in a slice/array matches one of the specified options. Supports string, int, and uint slices. Example: `validate:"anyof=red green blue... push 01 Apr 2026 08:03PM UTC web-flow github
93.84
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