Details
-
New Feature
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
0.6.0
-
None
-
None
Description
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.
<match pattern="{scheme}://{host}:{port}/api/{path=**}?{**}"> <rewrite template=""{scheme}://{host}:{port}/api/{$header[version]}/{path}?{**}""/> </match>
As implied above the rewrite function plugin model seems like an excellent way to provide basic access to header information.