Class: WEBrick::HTTPServer
- Inherits:
-
Object
- Object
- WEBrick::HTTPServer
- Defined in:
- lib/firephruby.rb
Instance Method Summary collapse
-
#_firephruby_the_original_service_method ⇒ Object
‘duck punching’ the service method.
-
#service(req, res) ⇒ Object
to get req.properties to the response object.
Instance Method Details
#_firephruby_the_original_service_method ⇒ Object
‘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.['HTTP_USER_AGENT'] ) res.( {} ) _firephruby_the_original_service_method(req,res) end |