ISpectHttpInterceptorSettings constructor
const
ISpectHttpInterceptorSettings({
- bool enabled = true,
- bool enableRedaction = true,
- bool printResponseData = true,
- bool printResponseHeaders = false,
- bool printResponseMessage = true,
- bool printErrorData = true,
- bool printErrorHeaders = true,
- bool printErrorMessage = true,
- bool printRequestData = true,
- bool printRequestHeaders = false,
- AnsiPen? requestPen,
- AnsiPen? responsePen,
- AnsiPen? errorPen,
- @Deprecated('Use requestChain instead') bool requestFilter(
- BaseRequest request
- @Deprecated('Use responseChain instead') bool responseFilter(
- BaseResponse response
- @Deprecated('Use errorChain instead') bool errorFilter(
- BaseResponse response
- NetworkFilterChain<
BaseRequest> ? requestChain, - NetworkFilterChain<
BaseResponse> ? responseChain, - NetworkFilterChain<
BaseResponse> ? errorChain,
Implementation
const ISpectHttpInterceptorSettings({
super.enabled,
super.enableRedaction,
super.printResponseData,
super.printResponseHeaders,
super.printResponseMessage,
super.printErrorData,
super.printErrorHeaders,
super.printErrorMessage,
super.printRequestData,
super.printRequestHeaders,
super.requestPen,
super.responsePen,
super.errorPen,
@Deprecated('Use requestChain instead') this.requestFilter,
@Deprecated('Use responseChain instead') this.responseFilter,
@Deprecated('Use errorChain instead') this.errorFilter,
this.requestChain,
this.responseChain,
this.errorChain,
});