Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default the configuration parameter #32

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

czechboy0
Copy link
Collaborator

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.

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

Successfully merging this pull request may close these issues.

2 participants