sensai
Version:
Because even AI needs a master
24 lines (23 loc) • 813 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return _default;
}
});
const _context = /*#__PURE__*/ _interop_require_default(require("../server/context"));
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
const _default = ()=>{
const store = _context.default.getStore();
// TODO we should proxy headers and parse values for convenience
// TODO we should allow to set headers for the response!! (ex: using streams nd we know the length of the stream, like the size of a file)
// TODO think of a way to use hooks to set status code as well (status(code, ?errorMessage))
return store.headers;
};