deferToHttpOverrides property

bool deferToHttpOverrides
final

When true (the default) and a TracedHttpOverrides has been installed in this isolate, this interceptor records nothing: Dio's default adapter routes through dart:io HttpClient, so the overrides layer already captures the call and recording here would produce a duplicate timeline entry.

Set to false when Dio uses a custom HttpClientAdapter (mocks, http2) that bypasses dart:io — in that case the overrides layer never sees the request and this interceptor must record it.

Implementation

final bool deferToHttpOverrides;