# setContentType 设置返回的Content-Type ## 函数原型 ```php /** * Set Content-Type Header * * @param string $mime_type Extension of the file we're outputting * @return HttpOutPut */ public function setContentType($mime_type) ```