CurlOptions class

Class to define additional cURL options for the log_curl_request package.

This class provides various configuration options that can be applied to cURL commands to modify their behavior, such as SSL verification, compression, verbosity, and redirect handling.

Constructors

CurlOptions({bool insecure = false, bool compressed = false, bool verbose = false, bool location = false, int? maxTime, List<String> customOptions = const []})
Creates a CurlOptions instance with the specified configuration.
const

Properties

compressed bool
Whether to use the --compressed option.
final
customOptions List<String>
Additional custom cURL options.
final
hashCode int
The hash code for this object.
no setterinherited
insecure bool
Whether to use the --insecure option (skip SSL verification).
final
location bool
Whether to use the --location option (follow redirects).
final
maxTime int?
Maximum time allowed for the transfer in seconds.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
verbose bool
Whether to use the --verbose option.
final

Methods

copyWith({bool? insecure, bool? compressed, bool? verbose, bool? location, int? maxTime, List<String>? customOptions}) CurlOptions
Creates a copy of this object with the given fields replaced with the new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited