encoding property

String get encoding

Implementation

String get encoding {
  final mediaType =
      MediaType.parse(headers['content-type'] ?? defaultContentType);
  return mediaType.parameters['charset'] ?? defaultCharset;
}