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

Provide a way to pass through a certain HTTP upgrade request #11267

Merged
merged 3 commits into from May 18, 2021

Conversation

trustin
Copy link
Member

@trustin trustin commented May 18, 2021

Motivation:

A user might want to handle a certain HTTP upgrade request differently
than what HttpServerUpgradeHandler does by default. For example, a
user could let HttpServerUpgradeHandler handle HTTP/2 upgrades but
not WebSocket upgrades.

Modifications:

  • Added HttpServerUpgradeHandler.isUpgrade(HttpRequest) so a user can
    tell HttpServerUpgradeHandler to pass the request as it is to the
    next handler.

Result:

  • A user can handle a certain upgrade request specially.

Motivation:

A user might want to handle a certain HTTP upgrade request differently
than what `HttpServerUpgradeHandler` does by default. For example, a
user could let `HttpServerUpgradeHandler` handle HTTP/2 upgrades but
not WebSocket upgrades.

Modifications:

- Added `HttpServerUpgradeHandler.isUpgrade(HttpRequest)` so a user can
  tell `HttpServerUpgradeHandler` to pass the request as it is to the
  next handler.

Result:

- A user can handle a certain upgrade request specially.
@trustin trustin added this to the 4.1.65.Final milestone May 18, 2021
@trustin trustin changed the title Provide a way to pass through a certain upgrade request Provide a way to pass through a certain HTTP upgrade request May 18, 2021
Copy link
Member

@NiteshKant NiteshKant left a comment

Choose a reason for hiding this comment

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

:shipit:

@normanmaurer normanmaurer merged commit 3972bac into 4.1 May 18, 2021
@normanmaurer normanmaurer deleted the pass_through_upgrade_request branch May 18, 2021 09:42
normanmaurer pushed a commit that referenced this pull request May 18, 2021
Motivation:

A user might want to handle a certain HTTP upgrade request differently
than what `HttpServerUpgradeHandler` does by default. For example, a
user could let `HttpServerUpgradeHandler` handle HTTP/2 upgrades but
not WebSocket upgrades.

Modifications:

- Added `HttpServerUpgradeHandler.isUpgrade(HttpRequest)` so a user can
  tell `HttpServerUpgradeHandler` to pass the request as it is to the
  next handler.

Result:

- A user can handle a certain upgrade request specially.
raidyue pushed a commit to raidyue/netty that referenced this pull request Jul 8, 2022
…1267)


Motivation:

A user might want to handle a certain HTTP upgrade request differently
than what `HttpServerUpgradeHandler` does by default. For example, a
user could let `HttpServerUpgradeHandler` handle HTTP/2 upgrades but
not WebSocket upgrades.

Modifications:

- Added `HttpServerUpgradeHandler.isUpgrade(HttpRequest)` so a user can
  tell `HttpServerUpgradeHandler` to pass the request as it is to the
  next handler.

Result:

- A user can handle a certain upgrade request specially.
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.

None yet

3 participants