onResponseStarted property

EventStream<OnResponseStartedDetails> get onResponseStarted

Fired when the first byte of the response body is received. For HTTP requests, this means that the status line and response headers are available.

Implementation

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