code/libraries/joomlatools/library/http/message/message.php
public function setContentType($type)
    {
        if($type)
        {
            $this->_content_type = $type;
            $this->_headers->set('Content-Type', array($type => array('charset' => 'utf-8')));
        }

        return $this;
    }
public function setContentType($type)
    {
        if($type)
        {
            $this->_content_type = $type;
            $this->_headers->set('Content-Type', array($type => array('charset' => 'utf-8')));
        }

        return $this;
    }
public function setContentType ( $ type ) { if ( $ type ) { $ this -> _content_type = $ type ; $ this -> _headers -> set ( 'Content-Type' , array ( $ type => array ( 'charset' => 'utf-8' ) ) ) ; } return $ this ; }
Sets the response content type

@see http://tools.ietf.org/html/rfc2616#section-14.17

@param string $type Content type
@return KHttpMessage
Sets the response content type