safeRequestDecoded<T> method
Future<OxyResult<T>>
safeRequestDecoded<
T>( - String method,
- String path, {
- QueryMap? query,
- Object? body,
- Object? json,
- RequestOptions? options,
- 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,
),
);
}