onHeadersReceived property

EventStream<OnHeadersReceivedDetails> get onHeadersReceived

Fired when HTTP response headers of a request have been received.

Implementation

EventStream<OnHeadersReceivedDetails> get onHeadersReceived =>
    $js.chrome.webRequest.onHeadersReceived
        .asStream(($c) => ($js.OnHeadersReceivedDetails details) {
              return $c(OnHeadersReceivedDetails.fromJS(details));
            }.toJS);