lib/sl-content.js
function Content(mimeType, content) {
    var obj = {};

    obj.type = mimeType + '; charset=utf-8';
    obj.value = content;
    obj.length = content.length;

    return obj;
}
function Content(mimeType, content) {
    var obj = {};

    obj.type = mimeType + '; charset=utf-8';
    obj.value = content;
    obj.length = content.length;

    return obj;
}
function Content ( mimeType , content ) { var obj = { } ; obj . type = mimeType + '; charset=utf-8' ; obj . value = content ; obj . length = content . length ; return obj ; }
Generic concept of a Content-Type model => all content is assumed to have charset = 'utf-8'

@param {String} mimeType => how the client should read the content
@param {Object} content => actual content (file, image, etc)
@returns {Content} content wrapper for given payload.
Generic concept of a Content - Type model = > all content is assumed to have charset = utf - 8