Curl class
A representation of a cURL command in Dart.
The Curl class provides methods for parsing a cURL command string and formatting a Curl object back into a cURL command.
Constructors
Properties
-
Sends cookies with the request.
final
- data → String?
-
Sends data as the request body (typically used with POST requests).
final
- form → bool
-
Sends data as a multipart/form-data request.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> ? -
Adds custom HTTP headers to the request.
final
- insecure → bool
-
Allows insecure SSL connections.
final
- location → bool
-
Follows HTTP redirects.
final
- method → String
-
Specifies the HTTP request method (e.g., GET, POST, PUT, DELETE).
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- referer → String?
-
Sets the Referer header for the request.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited - uri → Uri
-
Specifies the HTTP request URL
final
- user → String?
-
Specifies the username and password for HTTP basic authentication.
final
- userAgent → String?
-
Sets the User-Agent header for the request.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toCurlString(
) → String -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited