checkEgress
Auto-generated API reference for checkEgress.
Function: checkEgress()
checkEgress(
parsed,policy?):Promise<string|null>
Defined in: safe-fetch.ts:100
Gate a parsed URL against an egress policy. Returns an error string when the
request must be blocked (caller can surface it verbatim), or null to allow.
Enforces http/https only and default-deny of private hosts.
#Parameters
#parsed
URL
#policy?
EgressPolicy = \{\}
#Returns
Promise<string | null>