Skip to main content

is_url_allowed

Function is_url_allowed 

Source
pub fn is_url_allowed(gate: Option<&PromptUrlGate>, url: &str) -> bool
Expand description

Check if a URL is allowed by the gate.

Returns:

  • true if the URL is allowed (no gate, or gate allows the URL)
  • false if the URL is blocked