extractBody method
Implementation
Future<Request> extractBody() async {
_extractCookies();
final whereMethod = [
'post',
'patch',
'put',
'delete',
].where((method) => method == request.method.toLowerCase()).toList();
if (whereMethod.isNotEmpty) {
body = await RequestBody.extractBody(request: request);
}
return this;
}