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