Returns a new FirewallConfig with the startup burst guard replaced. A windowMs of zero turns the guard off, since no operation falls inside it.
windowMs
Current firewall config
The window, operation limit and exceed-action to apply
New FirewallConfig with the burst guard set
RangeError if windowMs is negative or not finite, maxOps is not a non-negative safe integer, or action is unknown
maxOps
action
const cfg2 = setBurstGuard(cfg, { windowMs: 5000, maxOps: 100, action: 'block' }); Copy
const cfg2 = setBurstGuard(cfg, { windowMs: 5000, maxOps: 100, action: 'block' });
Returns a new FirewallConfig with the startup burst guard replaced. A
windowMsof zero turns the guard off, since no operation falls inside it.