Create new instance of class hw_api_content
$content
$mimetype
Creates a new content object from the string content.
content
mimetype
The mimetype for the contents.