mimeType method

Method mimeType(
  1. String mimeType
)

Implementation

Method mimeType(String mimeType) {
  final mt = MediaType.parse(getHeaders['content-type'] ?? 'text/plain');
  header('content-type', mt.change(mimeType: mimeType).toString());
  return this;
}