@aikidosec/firewall
Version:
Zen by Aikido is an embedded Application Firewall that autonomously protects Node.js apps against common and critical attacks, provides rate limiting, detects malicious traffic (including bots), and more.
9 lines (8 loc) • 446 B
TypeScript
import type { Context } from "../Context";
import type { Route } from "../Routes";
/**
* Updates the body, query, and auth info of an existing route with new info from the context.
* Only the first 10 hits of a route during one heartbeat window are sampled.
* Unless process.env.MAX_API_DISCOVERY_SAMPLES is set to a different value.
*/
export declare function updateApiInfo(context: Context, existingRoute: Route, maxSamples: number): void;