UNPKG

@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.

15 lines (14 loc) 510 B
import { Hooks } from "../agent/hooks/Hooks"; import { Wrapper } from "../agent/Wrapper"; /** * This helps detect attacks in frameworks that parse the body lazily inside handlers * rather than using middleware before the handler is invoked. * * Note: We only support promise-based usage of raw-body, callbacks are not supported yet. */ export declare class RawBody implements Wrapper { private looksLikeJson; private tryUpdateContextBody; private onBodyParsed; wrap(hooks: Hooks): void; }