Classes

Method HttpMessagePart() :setContentType() Foundation

Sets the content type.

Syntax
 
METHOD :setContentType( <cMIMEType> ) --> self
Parameters
<cMIMEType>
A character string specifying the media type of the resource that is requested. The string must contain one of the standardized MIME (Multipurpose Internet Mail Extension) types. A MIME type generally has the form "type/subtype". Examples are "text/html", "image/jpeg" or "application/octet-stream". A full list of the offical MIME types currently registered is available here: https://www.iana.org/assignments/media-types/media-types.xhtml.
Return

:setContentType() returns the object executing the method.

Description

The method :setContentType() specifies the content type of the content of this message part object.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.