Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Default the configuration parameter #32

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

Merged
czechboy0 merged 1 commit into swift-server:main from czechboy0:hd-default-configuration
Nov 30, 2023

Conversation

Copy link
Collaborator

@czechboy0 czechboy0 commented Nov 30, 2023

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
Reviewers

@dnadoba dnadoba dnadoba approved these changes

Assignees
No one assigned
Labels
🆕 semver/minor Adds new public API.
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /