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.

10 lines (9 loc) 518 B
import { RequestContextStorage } from "./RequestContextStorage"; import type { Dispatcher } from "undici-v6"; import { Context } from "../../agent/Context"; type OnHeaders = Dispatcher.DispatchHandlers["onHeaders"]; /** * Wrap the onHeaders function and check if the response is a redirect. If yes, determine the destination URL and call onRedirect. */ export declare function wrapOnHeaders(orig: OnHeaders, requestContext: ReturnType<typeof RequestContextStorage.getStore>, context: Context): OnHeaders; export {};