method
service
v1_9_2_180 -
Show latest stable
- Class:
WEBrick::CGI
service(req, res)public
No documentation available.
# File lib/webrick/cgi.rb, line 111
def service(req, res)
method_name = "do_" + req.request_method.gsub(/-/, "_")
if respond_to?(method_name)
__send__(method_name, req, res)
else
raise HTTPStatus::MethodNotAllowed,
"unsupported method `#{req.request_method}'."
end
end