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

FrameworkRestrictions


This class creates framework restrictions. You can allow/disallow IP or custom headers.

Methods


framework.restrictions.allow(key, [value])framework.restrictions.clearHeaders()framework.restrictions.clearIP()framework.restrictions.disallow(key, [value])
framework.restrictions.allow(key, [value]);
return Framework;

Set an allowed restrictions.

framework.restrictions.clearHeaders();
return Framework;

Clear all restrictions to headers.

framework.restrictions.clearIP();
return Framework;

Clear all restrictions to IP.

framework.restrictions.disallow(key, [value]);
return Framework;

Set an disallowed restrictions. This is blacklist for IP address or custom headers.