getBody method
Implementation
Future<String?> getBody() async {
if (method.toLowerCase() == 'post') {
if (contentType.contains('multipart/form-data')) {
return 'Form Data';
} else {
return utf8.decode(await bodyBytes.toBytes());
}
}
return '';
}