Curl constructor

Curl({
  1. required Uri uri,
  2. String method = 'GET',
  3. Map<String, String>? headers,
  4. String? data,
  5. String? cookie,
  6. String? user,
  7. String? referer,
  8. String? userAgent,
  9. bool form = false,
  10. bool insecure = false,
  11. bool location = false,
})

Constructs a new Curl object with the specified parameters.

The uri parameter is required, while the remaining parameters are optional.

Implementation

Curl({
  required this.uri,
  this.method = 'GET',
  this.headers,
  this.data,
  this.cookie,
  this.user,
  this.referer,
  this.userAgent,
  this.form = false,
  this.insecure = false,
  this.location = false,
});