Sha256: 3952cf398946b341fbf0b1649927bd02b24a8a4d4d33f2f3ca7f1ecac984c473

Contents?: true

Size: 684 Bytes

Versions: 15

Compression:

Stored size: 684 Bytes

Contents

# -*- coding: binary -*-
module Rex
module Proto
module Http

###
#
# This class acts as the base class for all handlers.
#
###
class Handler

  require 'rex/proto/http/handler/erb'
  require 'rex/proto/http/handler/proc'

  #
  # Initializes the handler instance as being associated with the supplied
  # server.
  #
  def initialize(server)
    self.server = server
  end

  #
  # By default, handlers do not require a relative resource.
  #
  def self.relative_resource_required?
    false
  end

  #
  # Calls the class method.
  #
  def relative_resource_required?
    self.class.relative_resource_required?
  end

protected

  attr_accessor :server # :nodoc:

end


end
end
end

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
rex-2.0.13 lib/rex/proto/http/handler.rb
rex-2.0.12 lib/rex/proto/http/handler.rb
rex-2.0.11 lib/rex/proto/http/handler.rb
rex-2.0.10 lib/rex/proto/http/handler.rb
rex-2.0.9 lib/rex/proto/http/handler.rb
rex-2.0.8 lib/rex/proto/http/handler.rb
rex-2.0.7 lib/rex/proto/http/handler.rb
rex-2.0.5 lib/rex/proto/http/handler.rb
rex-2.0.4 lib/rex/proto/http/handler.rb
dstruct-0.0.1 lib/rex/proto/http/handler.rb
rex-2.0.3 lib/rex/proto/http/handler.rb
librex-0.0.999 lib/rex/proto/http/handler.rb
rex-2.0.2 lib/rex/proto/http/handler.rb
librex-0.0.71 lib/rex/proto/http/handler.rb
librex-0.0.70 lib/rex/proto/http/handler.rb