getUri<T> method

  1. @override
Future<Response<T>> getUri<T>(
  1. Uri uri, {
  2. Options? options,
  3. CancelToken? cancelToken,
  4. ProgressCallback? onReceiveProgress,
})
inherited

Handy method to make http GET request, which is a alias of BaseDio.requestOptions.

Implementation

@override
Future<Response<T>> getUri<T>(
  Uri uri, {
  Options? options,
  CancelToken? cancelToken,
  ProgressCallback? onReceiveProgress,
}) {
  return requestUri<T>(
    uri,
    options: checkOptions('GET', options),
    onReceiveProgress: onReceiveProgress,
    cancelToken: cancelToken,
  );
}