Skip to content

Conversation

@dwisiswant0
Copy link
Member

feat: add WrapTransport option

for custom transport middleware.

This enables users to wrap the underlying
http.RoundTripper with custom middleware without
losing the default transport configuration
(fastdialer, TLS settings, connection pooling).

The wrapper function receives the default
transport and returns the transport to use. It is
applied to both HTTP/1.1 and HTTP/2 clients.

Closes #504.

for custom transport middleware.

This enables users to wrap the underlying
`http.RoundTripper` with custom middleware without
losing the default transport configuration
(fastdialer, TLS settings, connection pooling).

The wrapper function receives the default
transport and returns the transport to use. It is
applied to both HTTP/1.1 and HTTP/2 clients.

Closes #504.

Signed-off-by: Dwi Siswanto <[email protected]>
@dwisiswant0 dwisiswant0 merged commit dab4f56 into main Dec 20, 2025
7 checks passed
@dwisiswant0 dwisiswant0 deleted the dwisiswant0/feat/add-WrapTransport-option branch December 20, 2025 01:07
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.

Add WrapTransport option for custom transport middleware

3 participants