![show/hide quicksearch [+]](../../images/find.png)
 
               # File webrick/httpservlet/abstract.rb, line 42
def do_GET(req, res)
  raise HTTPStatus::NotFound, "not found."
end
             
             
               # File webrick/httpservlet/abstract.rb, line 46
def do_HEAD(req, res)
  do_GET(req, res)
end
             
             
               # File webrick/httpservlet/abstract.rb, line 50
def do_OPTIONS(req, res)
  m = self.methods.grep(/\Ado_([A-Z]+)\z/) {$1}
  m.sort!
  res["allow"] = m.join(",")
end
             
             
               # File webrick/httpservlet/abstract.rb, line 32
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
             
            Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.
If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.
If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.
If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.