FetchProgress.forHeaders constructor

  1. @visibleForTesting
FetchProgress.forHeaders(
  1. FetchUrl fetch,
  2. Map<String, List<String>>? headers, {
  3. required FetchProgress? prior,
})

Fech has retrieved the HTTP headers

Implementation

@visibleForTesting
FetchProgress.forHeaders(this.fetch, this.headers, {required this.prior})
    : status = FetchStatus.headers,
      progress = 0,
      length = 0,
      downloaded = 0,
      responseCode = null {
  prior?.prior = null;
}