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

Allow setting Server header in Netty config #3615

Merged
merged 1 commit into from
Mar 16, 2024
Merged

Conversation

kciesielski
Copy link
Member

Closes #2971

@kciesielski kciesielski marked this pull request as ready for review March 15, 2024 17:50
@kciesielski kciesielski requested a review from adamw March 15, 2024 17:50
@@ -59,7 +62,8 @@ case class NettyConfig(
eventLoopConfig: EventLoopConfig,
socketConfig: NettySocketConfig,
initPipeline: NettyConfig => (ChannelPipeline, ChannelHandler) => Unit,
gracefulShutdownTimeout: Option[FiniteDuration]
gracefulShutdownTimeout: Option[FiniteDuration],
serverHeader: Option[String]
Copy link
Member

Choose a reason for hiding this comment

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

NettyConfig, or NettyOptions? Config is for: "configure the networking layer, the Netty processing pipeline, and start & stop the server.", does it fit?

Copy link
Member Author

Choose a reason for hiding this comment

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

NettyOptions are backend-specific (NettyCatsServerOptions, NettyIdServerOptions, etc.). NettyConfig seemed ok, can't we treat this as "configuring the networking layer"? ;)

Copy link
Member

Choose a reason for hiding this comment

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

It's a stretch, but I think we can live with this ;-)

@adamw adamw merged commit 7db23f9 into master Mar 16, 2024
28 checks passed
@adamw adamw deleted the netty-server-header branch March 16, 2024 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extend netty configuration
2 participants