expectsJson property

bool get expectsJson

Implementation

bool get expectsJson {
  final headerValue =
      request.headers[HttpHeaders.acceptEncodingHeader]?.toString();
  return headerValue != null && headerValue.contains('application/json');
}