Although it doesn't support regex, my understanding is that this package in conjunction with x/text/transform can efficiently perform text substitutions in streams: https://github.com/icholy/replace - it does not require buffering the entire body in memory.
This could be handy for production use cases requiring literal replacements in the response body.
Although it doesn't support regex, my understanding is that this package in conjunction with
x/text/transformcan efficiently perform text substitutions in streams: https://github.com/icholy/replace - it does not require buffering the entire body in memory.This could be handy for production use cases requiring literal replacements in the response body.