Module: Mongrel::HttpHandlerPlugin
- Included in:
- RequestLog::Access, RequestLog::Files, RequestLog::Objects, RequestLog::Params, RequestLog::Threads
- Defined in:
- lib/mongrel/handlers.rb
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
-
#listener ⇒ Object
Returns the value of attribute listener.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#request_notify ⇒ Object
readonly
Returns the value of attribute request_notify.
Instance Method Summary collapse
- #initialize(options = {}) ⇒ Object
- #process(request, response) ⇒ Object
- #request_begins(params) ⇒ Object
- #request_progress(params, clen, total) ⇒ Object
Instance Attribute Details
#listener ⇒ Object
Returns the value of attribute listener.
52 53 54 |
# File 'lib/mongrel/handlers.rb', line 52 def listener @listener end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
50 51 52 |
# File 'lib/mongrel/handlers.rb', line 50 def @options end |
#request_notify ⇒ Object (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 = @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 |