ResponseData constructor

ResponseData({
  1. required String url,
  2. required int status,
  3. required String statusText,
  4. required Headers headers,
  5. required String mimeType,
  6. required String charset,
  7. Headers? requestHeaders,
  8. required bool connectionReused,
  9. required num connectionId,
  10. String? remoteIPAddress,
  11. int? remotePort,
  12. bool? fromDiskCache,
  13. bool? fromServiceWorker,
  14. bool? fromPrefetchCache,
  15. bool? fromEarlyHints,
  16. ServiceWorkerRouterInfo? serviceWorkerRouterInfo,
  17. required num encodedDataLength,
  18. ResourceTiming? timing,
  19. ServiceWorkerResponseSource? serviceWorkerResponseSource,
  20. TimeSinceEpoch? responseTime,
  21. String? cacheStorageCacheName,
  22. String? protocol,
  23. AlternateProtocolUsage? alternateProtocolUsage,
  24. required SecurityState securityState,
  25. SecurityDetails? securityDetails,
})

Implementation

ResponseData({
  required this.url,
  required this.status,
  required this.statusText,
  required this.headers,
  required this.mimeType,
  required this.charset,
  this.requestHeaders,
  required this.connectionReused,
  required this.connectionId,
  this.remoteIPAddress,
  this.remotePort,
  this.fromDiskCache,
  this.fromServiceWorker,
  this.fromPrefetchCache,
  this.fromEarlyHints,
  this.serviceWorkerRouterInfo,
  required this.encodedDataLength,
  this.timing,
  this.serviceWorkerResponseSource,
  this.responseTime,
  this.cacheStorageCacheName,
  this.protocol,
  this.alternateProtocolUsage,
  required this.securityState,
  this.securityDetails,
});