← Về thư mục
openai4s/egress.py
- EgressBlocked · class · L129-L132 — class EgressBlocked(RuntimeError)
- egress_mode · function · L143-L155 — def egress_mode() -> str
- _norm · function · L158-L163 — def _norm(host: str) -> str
- domain_of · function · L166-L177 — def domain_of(target: str) -> str
- _host_matches · function · L180-L183 — def _host_matches(host: str, allowed: str) -> bool
- builtin_domains · function · L186-L188 — def builtin_domains() -> frozenset[str]
- exact_builtin_domains · function · L191-L205 — def exact_builtin_domains() -> frozenset[str]
- granted_domains · function · L208-L211 — def granted_domains() -> frozenset[str]
- domain_in_allowlist · function · L214-L232 — def domain_in_allowlist(host_or_url: str) -> bool
- grant_domain · function · L235-L242 — def grant_domain(domain: str) -> str
- revoke_domain · function · L245-L248 — def revoke_domain(domain: str) -> None
- reset_grants · function · L251-L254 — def reset_grants() -> None
- domain_allowed · function · L257-L274 — def domain_allowed(host_or_url: str) -> bool
- blocked_message · function · L277-L286 — def blocked_message(domain: str) -> str
- blocked_error · function · L289-L291 — def blocked_error(domain: str) -> dict
- check_url · function · L294-L331 — def check_url(url: str) -> None
- command_domains · function · L339-L351 — def command_domains(command: str) -> list[str]
- scan_command · function · L354-L369 — def scan_command(command: str) -> str | None