Skip to content

Conversation

@ramanadas
Copy link
Owner

@ramanadas ramanadas commented May 2, 2024

Implement contextual data support for proxied requests

This feature enhancement addresses issue 71 by introducing the ability to provide contextual data when handing over a request to the proxy. The contextual data is made accessible to all proxy components, including origin selectors and interceptors, allowing for more flexible and customized handling of proxied requests.

Key Changes:

  1. Modified the ProxiedRequest class to include field contextData and providing methods to set and get contextual data.
  2. Updated the Proxy class to accept and propagate contextual data when handling proxied requests.

This enhancement improves the flexibility and extensibility of the proxy functionality, empowering users to tailor the proxy behavior based on specific contextual information associated with proxied requests.

Closes eclipse-vertx#71

 path (e.g. prefix addition or removal)
 query (e.g. transform query param into path param)
 headers/trailers (filtering and modification)
 body (e.g. read JSON fully and modify fields)

closes eclipse-vertx#65
…or-proxied-requests

Out of the box transformations for proxied requests
added field and getter and setter of it
added constructor which takes contextData as parameter
If not instance of class return null
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.

Contextual data for proxied request

2 participants