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.

11 lines (10 loc) 498 B
import type { RequestOptions as HTTPRequestOptions } from "http"; /** * Gets the url from the arguments of a node:http(s) outgoing request function call. */ export declare function getUrlFromHTTPRequestArgs(args: unknown[], module: "http" | "https"): URL | undefined; /** * Request options can be provided as the first argument or as the second argument. * But thy can also be not provided at all. */ export declare function getRequestOptions(args: unknown[]): HTTPRequestOptions | undefined;