Request constructor

Request(
  1. String method,
  2. Uri url, {
  3. Map<String, String> headers = const {},
  4. Map<String, List<String>> headersAll = const {},
  5. Encoding? encoding,
  6. String? contentType,
  7. Stream<List<int>>? body,
})

Implementation

Request(
  this.method,
  this.url, {
  this.headers = const {},
  this.headersAll = const {},
  this.encoding,
  this.contentType,
  this.body,
});