onHttpClientResponse property

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

A callback called when a HttpClientResponse arrives (only outside browsers).

You can access httpClientResponse if you want to access headers.

Implementation

FutureOr<void> Function(
    EventSourceOutsideBrowser eventSource,
    HttpClientRequest request,
    HttpClientResponse response)? onHttpClientResponse;