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

API Cleanup: HTTPChannelBuilder should build server not channel #452

Merged
merged 3 commits into from
May 20, 2024

Conversation

adam-fowler
Copy link
Member

@adam-fowler adam-fowler commented May 16, 2024

Also renamed it to HTTPServerBuilder

Also rename Address back to BindAddress now that it is only being used as a bind address (It got named to Address when I introduced the generic client, which has been removed now)

Also renamed it to HTTPServerBuilder
@adam-fowler adam-fowler requested a review from Joannis May 16, 2024 09:10
Now it is only being used as a bind address
Copy link
Member

@Joannis Joannis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's a nice improvement

eventLoopGroup: EventLoopGroup,
logger: Logger,
responder: @escaping HTTPChannelHandler.Responder,
onServerRunning: (@Sendable (Channel) async -> Void)? = { _ in }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we use an empty closure as a default instead of nil for a reason?

@adam-fowler adam-fowler merged commit 71d6b99 into main May 20, 2024
4 of 5 checks passed
@adam-fowler adam-fowler deleted the http-server-builder branch May 20, 2024 06:49
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.

2 participants