Class: Rex::Proto::Http::Handler

Inherits:
Object
  • Object
show all
Defined in:
lib/rex/proto/http/handler.rb

Overview

This class acts as the base class for all handlers.

Direct Known Subclasses

Erb, Proc

Defined Under Namespace

Classes: Erb, Proc

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(server) ⇒ Handler

Initializes the handler instance as being associated with the supplied server.


20
21
22
# File 'lib/rex/proto/http/handler.rb', line 20

def initialize(server)
  self.server = server
end

Class Method Details

.relative_resource_required?Boolean

By default, handlers do not require a relative resource.


27
28
29
# File 'lib/rex/proto/http/handler.rb', line 27

def self.relative_resource_required?
  false
end

Instance Method Details

#relative_resource_required?Boolean

Calls the class method.


34
35
36
# File 'lib/rex/proto/http/handler.rb', line 34

def relative_resource_required?
  self.class.relative_resource_required?
end