@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.
7 lines (6 loc) • 301 B
TypeScript
import { Context } from "../Context";
export type BodyDataType = "json" | "form-urlencoded" | "form-data" | "xml" | undefined;
/**
* Tries to determine the type of the body data based on the content type header.
*/
export declare function getBodyDataType(headers: Context["headers"]): BodyDataType;