onBeforeSendHeaders property

EventStream<OnBeforeSendHeadersDetails> get onBeforeSendHeaders

Fired before sending an HTTP request, once the request headers are available. This may occur after a TCP connection is made to the server, but before any HTTP data is sent.

Implementation

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