Rößner-Network-Solutions

Skip to content

Refactor HTTP client handling for improved resource management

Christian Rößner requested to merge features into main

Replace usage of NewHTTPClient function with NewClosingHTTPClient to ensure proper handling of idle HTTP connections. This change helps to avoid potential resource leaks by encapsulating the closing logic within a dedicated function. All impacted files have been updated accordingly to use the new client and closure pattern.

Signed-off-by: Christian Roessner c@roessner.co

Merge request reports

Loading