class HTTP::Redirector

def initialize(opts = {})

Options Hash: (**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
end