@dazn/chaos-squirrel-attack-http-requests
v0.10.1
Published
Chaos Squirrel attack to HTTP requests
Downloads
3
Keywords
Readme
@dazn/chaos-squirrel-attack-http-requests
Attacks outgoing HTTP requests.
Usage
import HttpAttack from '@dazn/chaos-squirrel-attack-http-requests';
const createHttpAttack = HttpAttack.configure({
ignoreUrlPatterns: [
'dontattackme.com'
],
});
const httpAttack = createHttpAttack();
// Will intercept HTTP requests and inject failures
await httpAttack.start();
// Will stop injecting failures into HTTP requests
await httpAttack.stop();