Skip to content

Conversation

bharatAmeria
Copy link

This commit introduces a reusable HTTP transport utility with explicit configuration for connection management and TLS.

Key features:

  • Defines TransportConfig for tuning MaxIdleConns, MaxIdleConnsPerHost, and IdleConnTimeout.

  • Uses sensible defaults via DefaultTransportConfig().

  • Implements a mechanism (certResolver) to inject custom root certificates for secure communication with specific services.

  • Ensures all transports respect environment proxies (http.ProxyFromEnvironment).

This commit introduces a reusable HTTP transport utility with explicit configuration for connection management and TLS.

Key features:

- Defines TransportConfig for tuning MaxIdleConns, MaxIdleConnsPerHost, and IdleConnTimeout.

- Uses sensible defaults via DefaultTransportConfig().

- Implements a mechanism (certResolver) to inject custom root certificates for secure communication with specific services.

- Ensures all transports respect environment proxies (http.ProxyFromEnvironment).
This commit introduces a reusable HTTP transport utility with explicit configuration for connection management and TLS.

Key features:

- Defines TransportConfig for tuning MaxIdleConns, MaxIdleConnsPerHost, and IdleConnTimeout.

- Uses sensible defaults via DefaultTransportConfig().

- Implements a mechanism (certResolver) to inject custom root certificates for secure communication with specific services.

- Ensures all transports respect environment proxies (http.ProxyFromEnvironment).
This commit introduces a reusable HTTP transport utility with explicit configuration for connection management and TLS.

Key features:

- Defines TransportConfig for tuning MaxIdleConns, MaxIdleConnsPerHost, and IdleConnTimeout.

- Uses sensible defaults via DefaultTransportConfig().

- Implements a mechanism (certResolver) to inject custom root certificates for secure communication with specific services.

- Ensures all transports respect environment proxies (http.ProxyFromEnvironment).

Signed-off-by: bharat <[email protected]>
Copy link

codecov bot commented Sep 29, 2025

Codecov Report

❌ Patch coverage is 95.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 55.75%. Comparing base (da04400) to head (12de53c).

Files with missing lines Patch % Lines
pkg/util/http/transport.go 95.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #397      +/-   ##
==========================================
+ Coverage   55.41%   55.75%   +0.33%     
==========================================
  Files          46       46              
  Lines        4125     4143      +18     
==========================================
+ Hits         2286     2310      +24     
+ Misses       1511     1505       -6     
  Partials      328      328              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This commit introduces a reusable HTTP transport utility with explicit configuration for connection management and TLS.

Key features:

- Defines TransportConfig for tuning MaxIdleConns, MaxIdleConnsPerHost, and IdleConnTimeout.

- Uses sensible defaults via DefaultTransportConfig().

- Implements a mechanism (certResolver) to inject custom root certificates for secure communication with specific services.

- Ensures all transports respect environment proxies (http.ProxyFromEnvironment).

Signed-off-by: bharat <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant