Skip to content

Function model afterHeaders support

Compare
Choose a tag to compare
@Johnbastian Johnbastian released this 04 Mar 20:34
· 337 commits to master since this release
b01fdb5

Function models now have support for afterHeaders function by specifying a after_headers.js file in the same directory as the model, and exporting a function accepting arguments error, params, and body.

module.exports = function (error, params, body) {
	return {
	//Must return an object
	};
};