SetContentType method: Response class

Syntax

SetContentType(Type)

Description

This method sets the content type for this response. The parameter type takes a string value. This type may later be implicitly modified by the addition of properties such as the MIME charset property if the service finds it necessary and the appropriate property has not been set.

The content type defaults to "text/html" if it is not set.

Note:

You can specify the content type as “text/html” to indicate that you do not want the input content to be modified or minified.