getUri<T> method

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

Convenience method to make an HTTP GET request with Uri.

Implementation

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