dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.24k stars 1.57k forks source link

Resource timing info for Http(s) call? #31748

Open sureshg opened 6 years ago

sureshg commented 6 years ago

Is there any way to get event callbacks for the following operations when making an Http(s) request using this package?

dnsStart dnsEnd connectStart secureConnectStart secureConnectEnd connectEnd requestStart requestEnd responseStart responseEnd I am looking for something similar to the analytics API available in OKHttp (square/okhttp#270)

I asked this question on https://github.com/dart-lang/http/issues/141 and is being redirected here.

h3x4d3c1m4l commented 1 year ago

Having access to this kind of callbacks could be very beneficial in debugging performance issues due to network performance.