ISpectHttpInterceptorSettings constructor

const ISpectHttpInterceptorSettings({
  1. bool enabled = true,
  2. bool enableRedaction = true,
  3. bool printResponseData = true,
  4. bool printResponseHeaders = false,
  5. bool printResponseMessage = true,
  6. bool printErrorData = true,
  7. bool printErrorHeaders = true,
  8. bool printErrorMessage = true,
  9. bool printRequestData = true,
  10. bool printRequestHeaders = false,
  11. AnsiPen? requestPen,
  12. AnsiPen? responsePen,
  13. AnsiPen? errorPen,
  14. @Deprecated('Use requestChain instead') bool requestFilter(
    1. BaseRequest request
    )?,
  15. @Deprecated('Use responseChain instead') bool responseFilter(
    1. BaseResponse response
    )?,
  16. @Deprecated('Use errorChain instead') bool errorFilter(
    1. BaseResponse response
    )?,
  17. NetworkFilterChain<BaseRequest>? requestChain,
  18. NetworkFilterChain<BaseResponse>? responseChain,
  19. 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,
});