normalizeType static method

String? normalizeType(
  1. String? bodyType
)

Normalizes a Content-Type, allowing aliases like: json, png, jpeg and javascript.

Implementation

static String? normalizeType(String? bodyType) {
  return MimeType.parseAsString(bodyType);
}