ResponseData constructor

ResponseData(
  1. Uint8List bodyBytes,
  2. int statusCode, {
  3. Map<String, String>? headers,
  4. String? body,
  5. int? contentLength,
  6. bool? isRedirect,
  7. bool? persistentConnection,
  8. RequestData? request,
})

Creates a new response data with body bytes.

Implementation

ResponseData(
  this.bodyBytes,
  this.statusCode, {
  this.headers,
  this.body,
  this.contentLength,
  this.isRedirect,
  this.persistentConnection,
  this.request,
});