partial.js logo
Latest version
v1.3.1 (RC2)

HttpRouteOptions


Using:


exports.install = function(framework) {
	framework.route('/contact/', json_contact, { flags: ['post', 'json'], timeout: 10000 });
};

Properties


flags {String Array}length {Number}origin {String Array}partials {String Array}protocols {String Array}timeout {Number or Boolean}
flags;Default: []
optionalhttpwebsocket
return String Array;

Request flags.

length;Default: config['default-request-length']
optionalhttpwebsocket
return Number;

Maximum request length.

origin;Default: []
optionalwebsocket
return String Array;

Allow origin

partials;Default: []
optionalhttp
return String Array;

Names of partial content (private partial content).

protocols;Default: []
optionalwebsocket
return String Array;

Compare with websocket-allow-protocols

timeout;Default: config['default-request-timeout']
optionalhttp
return Number or Boolean;

Response timeout. If you want to disable timeout - set the timeout to false.