Rewritebody plugin to modify proxy response

Does Caddy have the ability to rewrite the body of responses like Traefik’s rewritebody or nginx_substitutions_filter?

Actually yeah, I just finished writing one for a client, gonna open source it soon.

At quick glance, looks like it should be more efficient thank Traefik’s plugin which buffers the whole body. Caddy’s will optionally perform the replacements on a stream.

1 Like

Any update on this? Just curious.

It’s here: GitHub - caddyserver/replace-response: Caddy module that performs replacements in response bodies

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.