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