Request constructor

Request(
  1. FetchApi _fetchApi,
  2. Frame? frame,
  3. String? interceptionId,
  4. RequestWillBeSentEvent event, {
  5. required List<Request> redirectChain,
  6. required bool? allowInterception,
})

Implementation

Request(this._fetchApi, this.frame, this.interceptionId, this.event,
    {required this.redirectChain, required bool? allowInterception})
    : allowInterception = allowInterception ?? false {
  for (var header in event.request.headers.value.keys) {
    _headers[header] = event.request.headers.value[header] as String;
  }
}