IsolateHttpRequest constructor

IsolateHttpRequest(
  1. String url, {
  2. String method = HttpMethod.get,
  3. Map<String, String>? query,
  4. Map<String, String>? headers,
  5. Object? body,
  6. List<HttpFile>? files,
})

The request using for Isolate Http.

url The url to which the request will be sent.

method The HttpMethod of the request.

query List queryParameters in http

headers The headers of the request.

body The body of the request.

files List of files (HttpFile) to be uploaded of the request.

Implementation

IsolateHttpRequest(this.url,
    {this.method = HttpMethod.get,
    this.query,
    this.headers,
    this.body,
    this.files});