class HTTP::Redirector
def initialize(options = {})
(**opts)
-
:max_hops
(#to_i
) -- maximum allowed amount of hops -
:strict
(Boolean
) -- redirector hops policy
Parameters:
-
opts
(Hash
) --
def initialize(options = {}) @strict = options.fetch(:strict, true) @max_hops = options.fetch(:max_hops, 5).to_i end