bool isJsonResponse(HttpResponse response, MimeType? mimeType) => responsesAsJson || response.isBodyTypeJSON;