Module: Mongrel::HttpHandlerPlugin

Overview

This is used when your handler is implemented as a GemPlugin. The plugin always takes an options hash which you can modify and then access later. They are stored by default for the process method later.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#listenerObject

Returns the value of attribute listener


52
53
54
# File 'lib/mongrel/handlers.rb', line 52

def listener
  @listener
end

#optionsObject (readonly)

Returns the value of attribute options


50
51
52
# File 'lib/mongrel/handlers.rb', line 50

def options
  @options
end

#request_notifyObject (readonly)

Returns the value of attribute request_notify


51
52
53
# File 'lib/mongrel/handlers.rb', line 51

def request_notify
  @request_notify
end

Instance Method Details

#initialize(options = {}) ⇒ Object


60
61
62
63
# File 'lib/mongrel/handlers.rb', line 60

def initialize(options={})
  @options = options
  @header_only = false
end

#process(request, response) ⇒ Object


65
66
# File 'lib/mongrel/handlers.rb', line 65

def process(request, response)
end

#request_begins(params) ⇒ Object


54
55
# File 'lib/mongrel/handlers.rb', line 54

def request_begins(params)
end

#request_progress(params, clen, total) ⇒ Object


57
58
# File 'lib/mongrel/handlers.rb', line 57

def request_progress(params, clen, total)
end