Class: Mongrel::ProctitleHandler

Inherits:
HttpHandler
  • Object
show all
Defined in:
lib/mongrel_proctitle.rb

Overview

Handler which sets process title before request.

Instance Method Summary collapse

Constructor Details

#initialize(titler) ⇒ ProctitleHandler

Returns a new instance of ProctitleHandler.



114
115
116
# File 'lib/mongrel_proctitle.rb', line 114

def initialize(titler)
  @titler = titler
end

Instance Method Details

#process(request, response) ⇒ Object



118
119
120
# File 'lib/mongrel_proctitle.rb', line 118

def process(request, response)
  @titler.set_handling(request)
end