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