ISpectWSInterceptorSettingsBuilder class
Builder for ISpectWSInterceptorSettings providing fluent API.
Provides WS-specific aliases: withSentFilter / withReceivedFilter
map to the base withRequestFilter / withResponseFilter methods.
Constructors
Properties
- enabled ↔ bool
-
getter/setter pairinherited
- enableRedaction ↔ bool
-
getter/setter pairinherited
-
errorChain
↔ NetworkFilterChain<
ISpectLogData> ? -
getter/setter pairinherited
- errorFilter ↔ bool Function(ISpectLogData)?
-
getter/setter pairinherited
- errorPen ↔ AnsiPen?
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- printErrorData ↔ bool
-
getter/setter pairinherited
- printErrorHeaders ↔ bool
-
getter/setter pairinherited
- printErrorMessage ↔ bool
-
getter/setter pairinherited
- printRequestData ↔ bool
-
getter/setter pairinherited
- printRequestHeaders ↔ bool
-
getter/setter pairinherited
- printResponseData ↔ bool
-
getter/setter pairinherited
- printResponseHeaders ↔ bool
-
getter/setter pairinherited
- printResponseMessage ↔ bool
-
getter/setter pairinherited
-
requestChain
↔ NetworkFilterChain<
ISpectLogData> ? -
getter/setter pairinherited
- requestFilter ↔ bool Function(ISpectLogData)?
-
getter/setter pairinherited
- requestPen ↔ AnsiPen?
-
getter/setter pairinherited
-
responseChain
↔ NetworkFilterChain<
ISpectLogData> ? -
getter/setter pairinherited
- responseFilter ↔ bool Function(ISpectLogData)?
-
getter/setter pairinherited
- responsePen ↔ AnsiPen?
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
applyDevelopmentDefaults(
) → void -
Applies development preset: all headers, all data, redaction enabled.
inherited
-
applyProductionDefaults(
) → void -
Applies production preset: errors only, redaction enabled.
inherited
-
applyStagingDefaults(
) → void -
Applies staging preset: request data + errors, redaction enabled.
inherited
-
build(
) → ISpectWSInterceptorSettings - Builds the concrete settings object. Subclasses must override to construct the package-specific settings type.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withAllData(
) → ISpectWSInterceptorSettingsBuilder -
Enables printing of all data (request, response, error).
inherited
-
withAllHeaders(
) → ISpectWSInterceptorSettingsBuilder -
Enables printing of all headers (request, response, error).
inherited
-
withDisabled(
) → ISpectWSInterceptorSettingsBuilder -
Disables the interceptor.
inherited
-
withEnabled(
) → ISpectWSInterceptorSettingsBuilder -
Enables the interceptor (enabled by default).
inherited
-
withErrorChain(
NetworkFilterChain< ISpectLogData> chain) → ISpectWSInterceptorSettingsBuilder -
Sets a
NetworkFilterChainfor error filtering.inherited -
withErrorData(
) → ISpectWSInterceptorSettingsBuilder -
Enables printing of error data.
inherited
-
withErrorFilter(
bool filter(ISpectLogData)) → ISpectWSInterceptorSettingsBuilder -
Sets a custom error filter callback.
inherited
-
withErrorHeaders(
) → ISpectWSInterceptorSettingsBuilder -
Enables printing of error headers.
inherited
-
withErrorMessage(
) → ISpectWSInterceptorSettingsBuilder -
Enables printing of error messages.
inherited
-
withErrorPen(
AnsiPen pen) → ISpectWSInterceptorSettingsBuilder -
Sets custom color for error logs.
inherited
-
withErrorsOnly(
) → ISpectWSInterceptorSettingsBuilder -
Configures to log only errors (disables request/response logging).
inherited
-
withoutRedaction(
) → ISpectWSInterceptorSettingsBuilder -
Disables sensitive data redaction (use only in dev/test environments).
inherited
-
withReceivedChain(
NetworkFilterChain< ISpectLogData> chain) → ISpectWSInterceptorSettingsBuilder -
Sets a
NetworkFilterChainfor received message filtering (WS alias). -
withReceivedFilter(
bool filter(ISpectLogData)) → ISpectWSInterceptorSettingsBuilder -
Alias for
withResponseFilterusing WS naming convention. -
withRedaction(
) → ISpectWSInterceptorSettingsBuilder -
Enables sensitive data redaction.
inherited
-
withRequestChain(
NetworkFilterChain< ISpectLogData> chain) → ISpectWSInterceptorSettingsBuilder -
Sets a
NetworkFilterChainfor request filtering.inherited -
withRequestData(
) → ISpectWSInterceptorSettingsBuilder -
Enables printing of request data.
inherited
-
withRequestFilter(
bool filter(ISpectLogData)) → ISpectWSInterceptorSettingsBuilder -
Sets a custom request filter callback.
inherited
-
withRequestHeaders(
) → ISpectWSInterceptorSettingsBuilder -
Enables printing of request headers.
inherited
-
withRequestPen(
AnsiPen pen) → ISpectWSInterceptorSettingsBuilder -
Sets custom color for request logs.
inherited
-
withResponseChain(
NetworkFilterChain< ISpectLogData> chain) → ISpectWSInterceptorSettingsBuilder -
Sets a
NetworkFilterChainfor response filtering.inherited -
withResponseData(
) → ISpectWSInterceptorSettingsBuilder -
Enables printing of response data.
inherited
-
withResponseFilter(
bool filter(ISpectLogData)) → ISpectWSInterceptorSettingsBuilder -
Sets a custom response filter callback.
inherited
-
withResponseHeaders(
) → ISpectWSInterceptorSettingsBuilder -
Enables printing of response headers.
inherited
-
withResponseMessage(
) → ISpectWSInterceptorSettingsBuilder -
Enables printing of response status messages.
inherited
-
withResponsePen(
AnsiPen pen) → ISpectWSInterceptorSettingsBuilder -
Sets custom color for response logs.
inherited
-
withSentChain(
NetworkFilterChain< ISpectLogData> chain) → ISpectWSInterceptorSettingsBuilder -
Sets a
NetworkFilterChainfor sent message filtering (WS alias). -
withSentFilter(
bool filter(ISpectLogData)) → ISpectWSInterceptorSettingsBuilder -
Alias for
withRequestFilterusing WS naming convention.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited