setResponseTransform method

void setResponseTransform(
  1. ProxyResponse fn(
    1. ProxyResponse
    )
)

Sets a transform function applied to responses before returning.

Implementation

void setResponseTransform(ProxyResponse Function(ProxyResponse) fn) {
  _responseTransform = fn;
}