@aikidosec/firewall
Version:
Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks
10 lines (9 loc) • 518 B
TypeScript
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 {};