class Seahorse::Client::HandlerList

def add(handler_class, options = {})

Returns:
  • (Class) - Returns the handler class that was added.

Other tags:
    Note: - There can be only one `:send` handler. Adding an additional

Raises:
  • (InvalidPriorityError) -
  • (InvalidStepError) -

Options Hash: (**options)
  • :operations (Array) -- A list of
  • :priority (Integer) -- The priority of this
  • :step (Symbol) -- The request life-cycle

Parameters:
  • handler_class (Class) -- This should be a subclass
def add(handler_class, options = {})
  @mutex.synchronize do
    add_entry(
      HandlerListEntry.new(options.merge(
        handler_class: handler_class,
        inserted: next_index
      ))
    )
  end
  handler_class
end