onHttpClientRequest property

FutureOr<void> Function(EventSourceOutsideBrowser eventSource, HttpClientRequest request)? onHttpClientRequest
getter/setter pair

A callback called when a HttpClientRequest is ready (only outside browsers).

You can access httpClientRequest if you want to set headers.

Implementation

FutureOr<void> Function(
        EventSourceOutsideBrowser eventSource, HttpClientRequest request)?
    onHttpClientRequest;