struct

Fetcher::RedirectConfig

Inherits Struct < Value < Object

Redirect security configuration allow_external: if false (default), redirects to external domains are blocked allowed_domains: optional allowlist of specific domains for external redirects allow_permanent_external: if true (default), 301/308 permanent redirects to external domains are allowed. These represent the resource URL moving permanently (e.g. blog relocations from blogspot.com to custom domains).

Constructors

new(allow_external : Bool = false, allowed_domains : Array(String) | Nil = nil, allow_permanent_external : Bool = true)
Source

Instance methods

allow_external
allow_permanent_external
allowed_domains
clone
Source
copy_with(allow_external _allow_external = @allow_external, allowed_domains _allowed_domains = @allowed_domains, allow_permanent_external _allow_permanent_external = @allow_permanent_external)
Source