srs/internal/utils
winlin aed4a6ffc3 Proxy: Modernize internal/utils imports and add unit tests.
Drop the deprecated io/ioutil and the stdlib errors alias — the internal
errors package already re-exports Is, As, Unwrap, and Join, so callers
can keep a single import. Add a utils_test.go covering every exported
helper (API response/error/CORS, ParseBody, BuildStreamURL, peer/closed
network classifiers, URL→stream conversion, RTC/SRT packet sniffers,
ICE/SRT parsers, and ParseListenEndpoint) for 96.3% statement coverage.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 19:59:48 -04:00
..
utils_test.go Proxy: Modernize internal/utils imports and add unit tests. 2026-04-19 19:59:48 -04:00
utils.go Proxy: Modernize internal/utils imports and add unit tests. 2026-04-19 19:59:48 -04:00