agentskit.js

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>

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page