put<T> function
Implementation
Future<Response> put<T>(
String uri, {
Map<String, String>? headers,
required dynamic body,
}) async {
final info = "(PUT) $uri";
report(
"Request $info\nRequestHeader $headers\nRequestBody ${const JsonEncoder.withIndent(" ").convert(body)}",
);
final response = await retry(
() => http.put(
Uri.parse(uri),
headers: headers,
body: toBody(body),
),
);
return transform(info, response);
}