plugins/tools/web/cfg

Web tool configuration.

Types

pub type WebConfig {
  WebConfig(
    max_response_chars: Int,
    max_error_chars: Int,
    request_timeout_ms: Int,
    user_agent: String,
    fetch_backend: String,
    allow_private_ips: Bool,
    scan_secrets: Bool,
  )
}

Constructors

  • WebConfig(
      max_response_chars: Int,
      max_error_chars: Int,
      request_timeout_ms: Int,
      user_agent: String,
      fetch_backend: String,
      allow_private_ips: Bool,
      scan_secrets: Bool,
    )

Values

pub fn allow_private_ips() -> Bool
pub fn fetch_backend() -> String
pub fn load(toml: dict.Dict(String, tom.Toml)) -> Nil
pub fn max_error_chars() -> Int
pub fn max_response_chars() -> Int
pub fn read() -> WebConfig
pub fn request_timeout_ms() -> Int
pub fn scan_secrets() -> Bool
pub fn user_agent() -> String
Search Document