get<T> static method
dynamic
get<T>(})
Implementation
static get<T>(
String path, {
Map<String, Object>? queryParameters,
Map<String, Object>? propertiesToLog,
Options? options,
CancelToken? cancelToken,
ProgressCallback? onReceiveProgress,
TelemetryClient? telemetryClient,
}) async {
final stopwatch = Stopwatch()..start();
final timestamp = DateTime.now().toUtc();
try {
var response = await _dio.get(path,
queryParameters: queryParameters,
options: options,
cancelToken: cancelToken,
onReceiveProgress: onReceiveProgress);
_sendTelemetry(response, null, "GET", timestamp, path, queryParameters, propertiesToLog, stopwatch, telemetryClient);
return response;
} on DioError catch (error) {
_sendErrorTelemetry(error, 0, "GET", timestamp, path, queryParameters, propertiesToLog, stopwatch, telemetryClient);
throw Future.error(error);
}
}