Private customization of variables?

Ok, so some context:

I forked lindenlab/caddy-s3-proxy and I’m working on adding www domain redirection: if a request comes in for foobar.example and caddy-s3-proxy knows of www.foorbar.example, it’ll return a redirect response. The problem is that (with my patch) you can give the domain in the bucket or the root, with postfixes or suffixes or other shenanigans.

So now I’m trying to implement this. What I think I need to do is re-replace the config using a mock request for a different hostname, and then do logic with that.

Which is quite a bit of ado to get to the question: can I use caddy.Replacer with a modified request without impacting the real request?