Class: Rex::Proto::Http::Handler
- Inherits:
-
Object
- Object
- Rex::Proto::Http::Handler
- Defined in:
- lib/rex/proto/http/handler.rb
Overview
This class acts as the base class for all handlers.
Defined Under Namespace
Class Method Summary collapse
-
.relative_resource_required? ⇒ Boolean
By default, handlers do not require a relative resource.
Instance Method Summary collapse
-
#initialize(server) ⇒ Handler
constructor
Initializes the handler instance as being associated with the supplied server.
-
#relative_resource_required? ⇒ Boolean
Calls the class method.
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 |