Scalr\Api\Rest\Http\Response::setContentType PHP Method

setContentType() public method

Sets content MIME type and encoding
public setContentType ( string $type, string $encoding = "utf-8" )
$type string Content MIME type
$encoding string optional Content encoding
    public function setContentType($type, $encoding = "utf-8")
    {
        $this->contentType = $type;
        $this->encoding = $encoding;
    }