ginuerzh
aba7e2a256
refactor(forwarder): split sniffer monolith into focused files, extract testable helpers
Split ~1250-line sniffer.go into sniffer_http.go (HTTP handling, dial, round-trip),
sniffer_tls.go (TLS MITM, termination), sniffer_h2.go (HTTP/2), sniffer_ws.go
(WebSocket frame copy/record), and sniffer_rewrite.go (upgrade, body rewrite).
Extract clampBodySize, normalizeHost, effectiveReadTimeout as package-level
functions to simplify testing. Add 22 tests covering pure functions, option
setters, HTTP proxy integration, WebSocket frame copy, and edge cases.
2026-05-26 22:48:27 +08:00
..
2025-02-09 16:16:44 +08:00
2023-10-19 23:47:47 +08:00
2026-05-26 22:48:27 +08:00
2022-07-27 18:01:22 +08:00
2024-07-15 20:34:59 +08:00
2022-04-13 21:30:30 +08:00
2026-05-21 22:50:29 +08:00
2025-08-04 19:29:38 +08:00
2026-04-21 20:51:17 +08:00
2022-03-14 20:27:14 +08:00
2025-07-30 21:40:53 +08:00
2026-05-25 21:44:58 +08:00
2023-10-15 23:55:52 +08:00
2025-09-04 21:30:49 +08:00
2025-07-30 21:40:53 +08:00
2026-05-22 21:40:33 +08:00
2025-08-29 23:36:31 +08:00
2022-03-14 20:27:14 +08:00
2025-07-26 16:17:04 +08:00
2025-10-11 22:01:24 +08:00
2025-08-04 19:29:38 +08:00
2025-02-25 20:39:33 +08:00
2025-08-04 19:29:38 +08:00
2025-08-03 10:15:53 +08:00