(self, pattern, repl, *args, **kwargs)
return c
Replaces a regular expression pattern with repl in all parts of the
            flow. Encoded content will be decoded before replacement, and
            re-encoded afterwards.

            Returns the number of replacements made.
Replaces a regular expression pattern with repl in all parts of the
            flow. Encoded content will be decoded before replacement, and
            re-encoded afterwards.
Replaces a regular expression pattern with repl in all parts of the flow . Encoded content will be decoded before replacement and re - encoded afterwards .
def replace(self, pattern, repl, *args, **kwargs):
        """
            Replaces a regular expression pattern with repl in all parts of the
            flow. Encoded content will be decoded before replacement, and
            re-encoded afterwards.

            Returns the number of replacements made.
        """
        c = self.request.replace(pattern, repl, *args, **kwargs)
        if self.response:
            c += self.response.replace(pattern, repl, *args, **kwargs)
        if self.error:
            c += self.error.replace(pattern, repl, *args, **kwargs)
        return c
def replace ( self , pattern , repl , * args , * * kwargs ) : c = self . request . replace ( pattern , repl , * args , * * kwargs ) if self . response : c += self . response . replace ( pattern , repl , * args , * * kwargs ) if self . error : c += self . error . replace ( pattern , repl , * args , * * kwargs ) return c