Class: WEBrick::HTTPServer
- Inherits:
-
Object
- Object
- WEBrick::HTTPServer
- Defined in:
- lib/core/webrick.rb
Instance Method Summary collapse
-
#_rwfp_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
#_rwfp_the_original_service_method ⇒ Object
‘duck punching’ the service method
8 |
# File 'lib/core/webrick.rb', line 8 alias _rwfp_the_original_service_method service |
#service(req, res) ⇒ Object
to get req.properties to the response object
10 11 12 13 14 |
# File 'lib/core/webrick.rb', line 10 def service(req,res) # to get req.properties to the response object res._rwfp_set_user_agent( req.['HTTP_USER_AGENT'] ) res.( {} ) _rwfp_the_original_service_method(req,res) end |