CxNetworkCaptureRule constructor
CxNetworkCaptureRule({})
Implementation
CxNetworkCaptureRule({
this.url,
this.urlPattern,
this.reqHeaders,
this.resHeaders,
this.collectReqPayload = false,
this.collectResPayload = false,
}) : _compiledPattern = urlPattern != null ? _tryCompile(urlPattern) : null {
if (url == null && urlPattern == null) {
throw ArgumentError(
'CxNetworkCaptureRule: at least one of url or urlPattern must be provided.',
);
}
}