setMimeType()

Overview

public any function setMimeType(
      required string mimeType
)

Sets the mime type of the response and returns reference to self so that methods can be chained

Arguments

NameTypeRequiredDescription
mimeTypestringYesmime type of the response, e.g. 'application/json'