Streamlined FilterFuncs
This release changes the API and hence is tagged as v2.
It removes the v1 style FilterFuncs and consolidates them in two new FilterFuncs: RequestFilterFunc
and ResponseFilterFunc
.
RequestFilterFunc
receives the request Header / Body to allow their transformation. Both the live request and the replayed request are filtered at comparison time. Transformations are not persisted and only for the purpose of influencing comparison.
ResponseFilterFunc
is the flip side of RequestFilterFunc
. It receives the response Header / Body to allow their transformation. Unlike RequestFilterFunc
, this influences the response returned from the request to the client. The request header is also passed to ResponseFilterFunc
but read-only and solely for the purpose of extracting request data for situations where it is needed to transform the Response.