chi/middleware
2026-11-07 16:51:20 +01:00
..
basic_auth.go use ConstantTimeCompare for password comparison (#549) 2020-11-17 12:45:04 -05:00
basic_auth_test.go Remove superfluous import aliases (#1166) 2026-08-31 10:56:47 +02:00
clean_path.go v5.0.0 (#591) 2021-02-27 19:11:55 -05:00
clean_path_test.go Remove superfluous import aliases (#1166) 2026-08-31 10:56:47 +02:00
client_ip.go middleware: treat RemoteAddr as the rightmost hop in ClientIPFrom* (#1214) 2026-10-12 13:22:20 +02:00
client_ip_bench_test.go middleware: treat RemoteAddr as the rightmost hop in ClientIPFrom* (#1214) 2026-10-12 13:22:20 +02:00
client_ip_example_test.go middleware: treat RemoteAddr as the rightmost hop in ClientIPFrom* (#1214) 2026-10-12 13:22:20 +02:00
client_ip_test.go middleware: test ClientIPFromHeader does not fall back to other headers (#1208) 2026-10-13 23:37:10 +02:00
compress.go Replace "interface{}" with "any" (#1167) 2026-08-31 12:52:54 +02:00
compress_test.go fix(middleware): reject catch-all compress wildcards "/*" and "*/*" (#1156) 2026-08-20 11:37:52 +02:00
content_charset.go middleware: parse quoted ContentCharset media parameters (#1218) 2026-10-14 01:23:36 +02:00
content_charset_test.go middleware: parse quoted ContentCharset media parameters (#1218) 2026-10-14 01:23:36 +02:00
content_encoding.go AllowContentEncoding middleware 2019-11-15 12:24:25 +01:00
content_encoding_test.go v5.0.0 (#591) 2021-02-27 19:11:55 -05:00
content_type.go Make use of strings.Cut (#1005) 2025-06-20 14:19:39 +02:00
content_type_test.go v5.0.0 (#591) 2021-02-27 19:11:55 -05:00
deprecation.go middleware: add Deprecation (RFC 9745), make Sunset RFC 8594 only (#1195) 2026-10-13 22:39:07 +02:00
deprecation_test.go middleware: add Deprecation (RFC 9745), make Sunset RFC 8594 only (#1195) 2026-10-13 22:39:07 +02:00
get_head.go v5.0.0 (#591) 2021-02-27 19:11:55 -05:00
get_head_test.go Fix non-constant format strings in t.Fatalf (#972) 2025-02-05 15:40:59 +01:00
heartbeat.go middleware: Heartbeat middleware to respond to HEAD methods as well 2021-10-27 07:10:07 -04:00
heartbeat_test.go Remove superfluous import aliases (#1166) 2026-08-31 10:56:47 +02:00
logger.go Replace "interface{}" with "any" (#1167) 2026-08-31 12:52:54 +02:00
logger_test.go Fix support for httptest.ResponseRecorder (#584) 2021-04-25 07:30:31 -04:00
maybe.go middleware: build Maybe handler once (#1197) 2026-10-13 23:58:26 +02:00
maybe_test.go middleware: build Maybe handler once (#1197) 2026-10-13 23:58:26 +02:00
middleware.go middleware.RouteHeaders: new middleware to allow header based routing flows (#503) 2020-04-14 20:50:17 -04:00
middleware_test.go Replace "interface{}" with "any" (#1167) 2026-08-31 12:52:54 +02:00
nocache.go Reformat godoc comments according to the latest Go (#867) 2023-10-19 09:21:23 -04:00
page_route.go middleware.PathRewrite 2021-07-14 14:31:22 -04:00
path_rewrite.go middleware.PathRewrite 2021-07-14 14:31:22 -04:00
path_rewrite_test.go Remove superfluous import aliases (#1166) 2026-08-31 10:56:47 +02:00
profiler.go Tidy build directives (#1113) 2026-06-22 17:45:48 +02:00
realip.go feat: middleware.ClientIP, a replacement for middleware.RealIP (#967) 2026-05-22 11:16:13 -04:00
realip_test.go Revert "feat(): add CF-Connecting-IP (#908)" (#966) 2024-12-14 18:06:53 +01:00
recoverer.go Replace "interface{}" with "any" (#1167) 2026-08-31 12:52:54 +02:00
recoverer_test.go Replace "interface{}" with "any" (#1167) 2026-08-31 12:52:54 +02:00
request_id.go Refactor to use atomic type (#1019) 2025-09-17 14:32:30 +02:00
request_id_test.go v5.0.0 (#591) 2021-02-27 19:11:55 -05:00
request_size.go Request size middleware (#808) (#809) 2023-03-31 07:29:16 -04:00
request_size_test.go middleware: add tests for RequestSize (#1252) 2026-11-07 16:51:20 +01:00
route_headers.go fix(middleware): add missing return in RouteHeaders empty check (#1045) 2026-02-05 12:05:34 +01:00
route_headers_test.go fix(middleware): add missing return in RouteHeaders empty check (#1045) 2026-02-05 12:05:34 +01:00
strip.go middleware: harden RedirectSlashes handler (#1044) 2026-01-14 11:02:00 -05:00
strip_test.go middleware: harden RedirectSlashes handler (#1044) 2026-01-14 11:02:00 -05:00
sunset.go middleware: add Deprecation (RFC 9745), make Sunset RFC 8594 only (#1195) 2026-10-13 22:39:07 +02:00
sunset_test.go middleware: add Deprecation (RFC 9745), make Sunset RFC 8594 only (#1195) 2026-10-13 22:39:07 +02:00
supress_notfound.go middleware: SupressNotFound must not mutate the request's route context (#1220) 2026-10-14 15:20:04 +02:00
supress_notfound_test.go middleware: SupressNotFound must not mutate the request's route context (#1220) 2026-10-14 15:20:04 +02:00
terminal.go Replace "interface{}" with "any" (#1167) 2026-08-31 12:52:54 +02:00
terminal_test.go test(middleware): Improves test coverage (#700) 2026-08-27 15:57:26 +02:00
throttle.go middleware: test Retry-After rounding in one table test (#1217) 2026-10-14 00:16:36 +02:00
throttle_test.go middleware: test Retry-After rounding in one table test (#1217) 2026-10-14 00:16:36 +02:00
timeout.go Reformat godoc comments according to the latest Go (#867) 2023-10-19 09:21:23 -04:00
url_format.go Avoid potential nil dereference (#1008) 2025-08-15 17:26:41 +02:00
url_format_test.go Fix non-constant format strings in t.Fatalf (#972) 2025-02-05 15:40:59 +01:00
value.go Replace "interface{}" with "any" (#1167) 2026-08-31 12:52:54 +02:00
value_test.go Remove superfluous import aliases (#1166) 2026-08-31 10:56:47 +02:00
wrap_writer.go middleware: preserve status after empty ReadFrom (#1213) 2026-10-18 15:50:22 +02:00
wrap_writer_readfrom_test.go middleware: preserve status after empty ReadFrom (#1213) 2026-10-18 15:50:22 +02:00
wrap_writer_test.go middleware: honor Discard when flushing (#1185) 2026-09-18 13:51:53 +02:00