fastify
Version:
Fast and low overhead web framework, for Node.js
27 lines (23 loc) • 548 B
JavaScript
function Request (params, req, body, query, headers, log) {
this.params = params
this.req = req
this.body = body
this.query = query
this.headers = headers
this.log = log
}
function buildRequest (R) {
function _Request (params, req, body, query, headers, log) {
this.params = params
this.req = req
this.body = body
this.query = query
this.headers = headers
this.log = log
}
_Request.prototype = new R()
return _Request
}
module.exports = Request
module.exports.buildRequest = buildRequest