Skip to content

Conversation

tsegismont
Copy link
Contributor

Backport of #121

Closes eclipse-vertx#35, closes eclipse-vertx#44

OriginRequestProvider is a Vert.x API type that unifies all the origin selection methods currently present as overloaded methods in HttpProxy.

OriginRequestProvider being a FunctionalInterface, users can provide one in the form of a lambda.

OriginRequestProvider is a little different from the existing contract.
Instead of the proxied request and HTTP client as parameters, it has the ProxyContext (that exposes all the proxy data and the client).

This allows implementations to make a decision on the modifications interceptors can make (including when the request is an upgrade to WebSocket). See eclipse-vertx#44

It also allows interceptor and provider to exchange data via the ProxyContext attachments. See eclipse-vertx#35

Signed-off-by: Thomas Segismont <[email protected]>
@tsegismont tsegismont added this to the 4.5.15 milestone May 13, 2025
@tsegismont tsegismont merged commit e28fa33 into eclipse-vertx:4.x May 16, 2025
4 checks passed
@tsegismont tsegismont deleted the backport-origin-request-provider branch May 19, 2025 15:54
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.

1 participant