caddy/modules/caddyhttp/encode
Kévin Dunglas 3be8dabc89
caddyhttp: use canonical header key casing to avoid re-canonicalization (#7911)
Header.Get/Set re-canonicalize and allocate whenever the passed key
isn't already in canonical MIME header form. Sec-WebSocket-Key,
WWW-Authenticate, and content-type all miss the fast path; switch to
their canonical forms (Sec-Websocket-Key, Www-Authenticate,
Content-Type).

Enable the canonicalheader linter to catch future regressions,
excluded in test files since those already use non-canonical casing
in several places without a perf-sensitive path behind them.
2026-07-30 20:40:35 +10:00
..
brotli encode,staticfiles: Content negotiation, precompressed files (#4045) 2021-03-29 18:47:19 -06:00
gzip caddyfile: Normalize & flatten all unmarshalers (#6037) 2024-01-23 19:36:59 -05:00
testdata encode: add standard benchmark and conformance harness (#7804) 2026-06-11 17:55:18 -06:00
zstd encode: make zstd checksum configurable (#7586) 2026-03-28 13:07:21 -06:00
caddyfile.go encode: make zstd checksum configurable (#7586) 2026-03-28 13:07:21 -06:00
encode.go caddyhttp: use canonical header key casing to avoid re-canonicalization (#7911) 2026-07-30 20:40:35 +10:00
encode_bench_test.go encode: add standard benchmark and conformance harness (#7804) 2026-06-11 17:55:18 -06:00
encode_conformance_test.go encode: add standard benchmark and conformance harness (#7804) 2026-06-11 17:55:18 -06:00
encode_harness_test.go encode: add standard benchmark and conformance harness (#7804) 2026-06-11 17:55:18 -06:00
encode_test.go encode: add standard benchmark and conformance harness (#7804) 2026-06-11 17:55:18 -06:00
export_test.go encode: add standard benchmark and conformance harness (#7804) 2026-06-11 17:55:18 -06:00