[
https://issues.apache.org/jira/browse/KNOX-618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15938831#comment-15938831
]
Jeffrey E Rodriguez commented on KNOX-618:
-------------------------------------------
It would be nice to include the header rewrite function from KNOX-618 in
release 13.
I am updating your patch to release 0.13.0.
> Rewrite function for accessing header values
> --------------------------------------------
>
> Key: KNOX-618
> URL: https://issues.apache.org/jira/browse/KNOX-618
> Project: Apache Knox
> Issue Type: New Feature
> Components: Server
> Affects Versions: 0.6.0
> Reporter: Kevin Minder
> Assignee: Kevin Minder
> Priority: Minor
> Fix For: Future
>
> Attachments: KNOX-618_001.patch
>
>
> I recently ran into a situation where it would have been useful to have
> access to header values in the rewrite rules. In particular it would be
> useful sometimes to API version with a header like this.
> {code}
> <match pattern="{scheme}://{host}:{port}/api/{path=**}?{**}">
> <rewrite
> template=""{scheme}://{host}:{port}/api/{$header[version]}/{path}?{**}""/>
> </match>
> {code}
> As implied above the rewrite function plugin model seems like an excellent
> way to provide basic access to header information.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)