Conversation

czechboy0

Motivation

The AsyncHTTPClient transport API has undergone changes in recent months and we didn't bring back the default initializer after we adopted the shared EventLoopGroup, allowing you to create a transport with just let transport = AsyncHTTPClientTransport().

Modifications

Default the configuration parameter in the initializer to be able to do that. It's already documented to work, but it doesn't.

Result

Match the documented behavior of being able to use let transport = AsyncHTTPClientTransport().

Test Plan

Tests still pass.

@czechboy0czecy0 merged commit 7edc421 into swift-server:main Nov 30, 2023
@czechboy0czecy0 deleted the hd-default-configuration branch November 30, 2023 12:39
@czechboy0czecy0 added the 🆕 semver/minorAdds new public API.label Dec 11, 2023
Sign up for free to join this conversation on . Already have an account? Sign in to comment
🆕 semver/minorAdds new public API.
None yet

Successfully merging this pull request may close these issues.