LogCurlConfig class
Global configuration for LogCurlRequest.
This class manages global settings that affect the behavior of all LogCurlRequest.create() calls unless overridden by specific parameters. Use the singleton instance to configure default behaviors across your application.
Constructors
-
LogCurlConfig({bool defaultShowDebugPrint = true, bool defaultMaskSensitiveInfo = false, bool defaultFormatOutput = false, CurlOptions? defaultCurlOptions, List<
String> ? sensitiveHeaders, void loggerFunction(String message)?}) - Creates a configuration instance with default values.
Properties
- defaultCurlOptions ↔ CurlOptions?
-
Default curl options to apply to all requests.
getter/setter pair
- defaultFormatOutput ↔ bool
-
Default value for formatted output.
getter/setter pair
- defaultMaskSensitiveInfo ↔ bool
-
Default value for masking sensitive information.
getter/setter pair
- defaultShowDebugPrint ↔ bool
-
Default value for showing debug print.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- loggerFunction ↔ void Function(String message)?
-
Custom logger function that will be used instead of debugPrint if provided.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sensitiveHeaders
↔ List<
String> -
List of headers that should be considered sensitive and masked.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void - Reset the configuration to default values.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → LogCurlConfig
-
Default instance of the configuration.
final