struct

PrismatIQ::Config

Inherits Struct < Value < Object

Configuration for PrismatIQ runtime behavior.

Constructors

default
new(debug : Bool = false, ssrf_protection : Bool = true, ssrf_allowlist : Array(String) | Nil = nil, rate_limit : Int32 = 10, max_image_width : Int32 = 8192, max_image_height : Int32 = 8192)

Instance methods

debug=(debug : Bool)

Enable debug logging

debug?

Enable debug logging

debug_log?
log_debug(message : String) : Nil
max_image_height
max_image_height=(max_image_height : Int32)
max_image_width

Maximum image dimensions (pixels) to prevent excessive memory from decompressed images

max_image_width=(max_image_width : Int32)

Maximum image dimensions (pixels) to prevent excessive memory from decompressed images

rate_limit

Rate limit for HTTP requests per second

rate_limit=(rate_limit : Int32)

Rate limit for HTTP requests per second

rate_limit_allow?
rate_limit_wait_time
rate_limiter

Internal rate limiter instance

rate_limiter=(rate_limiter : RateLimiter | Nil)

Internal rate limiter instance

ssrf_allowlist

Allowed hosts for URL fetching (bypasses SSRF check)

ssrf_allowlist=(ssrf_allowlist : Array(String) | Nil)

Allowed hosts for URL fetching (bypasses SSRF check)

ssrf_protection=(ssrf_protection : Bool)
ssrf_protection?