Skip to content

Add queryParams method to ProxyExchange #2833

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bergerst
Copy link

@bergerst bergerst commented Jan 4, 2023

Fixes #2129

I'm not sure if another method for exposing the original request's cookies is necessary. Otherwise users have to use reflection to read them.

Should probably also be cherry-picked into 3.1.xx.

@nateridderman
Copy link

👍🏻 I would love to see this

public String path() {
return (String) this.webRequest.getAttribute(HandlerMapping.PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE,
WebRequest.SCOPE_REQUEST);
return exchange.getRequest().getPath().pathWithinApplication().value();
Copy link
Member

Choose a reason for hiding this comment

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

There's no exchange in spring mvc, this doesn't even compile

Copy link
Author

Choose a reason for hiding this comment

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

There was at the time I opened this MR.

Copy link
Member

Choose a reason for hiding this comment

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

Server Web exchange is from spring webflux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ProxyExchange.uri() removes query string in original request
4 participants