safeRequestDecoded<T> method

Future<OxyResult<T>> safeRequestDecoded<T>(
  1. String method,
  2. String path, {
  3. QueryMap? query,
  4. HeadersInit? headers,
  5. Object? body,
  6. Object? json,
  7. RequestOptions? options,
  8. Decoder<T>? decoder,
})

Implementation

Future<OxyResult<T>> safeRequestDecoded<T>(
  String method,
  String path, {
  QueryMap? query,
  HeadersInit? headers,
  Object? body,
  Object? json,
  RequestOptions? options,
  Decoder<T>? decoder,
}) {
  return _capture(
    () => requestDecoded<T>(
      method,
      path,
      query: query,
      headers: headers,
      body: body,
      json: json,
      options: options,
      decoder: decoder,
    ),
  );
}