Code coverage report for lib\atoms\Request.js

Statements: 100% (14 / 14)      Branches: 100% (2 / 2)      Functions: 100% (1 / 1)      Lines: 100% (14 / 14)      Ignored: none     

All files » lib\atoms\ » Request.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  1 8 7 7   1       1 1 1 1 1 1 1 1   1
'use strict';
var Request = function (from) {
    if (this instanceof Request) {
        this.from = from;
        return this;
    }
    return new Request(from);
};
 
 
Request.prototype.route = null;
Request.prototype.url = null;
Request.prototype.type = null;
Request.prototype.method = null;
Request.prototype.headers = null;
Request.prototype.data = null;
Request.prototype.res = null;
Request.prototype.contentType = null;
 
module.exports = Request;