Class: WEBrick::HTTPServer

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

Instance Method Summary collapse

Instance Method Details

#_firephruby_the_original_service_methodObject

‘duck punching’ the service method



197
# File 'lib/firephruby.rb', line 197

alias _firephruby_the_original_service_method service

#service(req, res) ⇒ Object

to get req.properties to the response object



198
199
200
201
202
# File 'lib/firephruby.rb', line 198

def service(req,res)				# to get req.properties to the response object
	res._firephruby_set_user_agent( req.meta_vars['HTTP_USER_AGENT'] )
	res._firephruby_set_options( {} )
	_firephruby_the_original_service_method(req,res)
end