postUri<T> method

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

Convenience method to make an HTTP POST request with Uri.

Implementation

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