In: |
webrick/httpservlet/abstract.rb
|
Parent: | Object |
# File webrick/httpservlet/abstract.rb, line 22 def self.get_instance(config, *options) self.new(config, *options) end
# File webrick/httpservlet/abstract.rb, line 26 def initialize(server, *options) @server = @config = server @logger = @server[:Logger] @options = options end
# File webrick/httpservlet/abstract.rb, line 42 def do_GET(req, res) raise HTTPStatus::NotFound, "not found." end
# File webrick/httpservlet/abstract.rb, line 50 def do_OPTIONS(req, res) m = self.methods.grep(/^do_[A-Z]+$/) m.collect!{|i| i.sub(/do_/, "") } m.sort! res["allow"] = m.join(",") end