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

Accessing pathTemplate value at RequestInfoImpl #55

Closed
ferhatsb opened this issue May 23, 2017 · 3 comments
Closed

Accessing pathTemplate value at RequestInfoImpl #55

ferhatsb opened this issue May 23, 2017 · 3 comments

Comments

@ferhatsb
Copy link

Hi,
Having multiple paths for an endpoint, I would like to know which one has matched.
pathTemplate value is protected at RequestInfoImpl and has no getter defined at interface.

Does it makes sense to add a getter for it ?

@nicmunroe
Copy link
Member

Hi @ferhatsb - yes it does make sense to add a getter for that to the RequestInfo interface. I'll leave this issue open as a reminder to add that getter, or you can submit a pull request.

In the meantime, you can call ChannelAttributes.getHttpProcessingStateForChannel(ctx).get().getMatchingPathTemplate() to get that value.

@nicmunroe
Copy link
Member

@ferhatsb this fix will show up in the next release. Thanks @rabeyta for the PR!

@rabeyta
Copy link
Member

rabeyta commented Jun 13, 2017

fixed in 0.10.0

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

No branches or pull requests

3 participants