Ability to use variables in replacement strings for rewrite middleware.

How would we get the value of request.URL to be

```
"/foo/${request.header.X-Header}/bar/${request.header.X-Header}"

```
?