ContentType</h4>
<pre class="methodSignature">void&nbsp;setContentType&#8203;(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;type)</pre>
<div class="block">Sets the content type of the response being sent to the client, if the response has not been committed yet. The given
 content type may include a character encoding specification, for example, <code>text/html;charset