Parent

Methods

VpimServlet

Public Instance Methods

do_GET(req, resp) click to toggle source
# File lib/vpim/agent/main.rb, line 283
def do_GET(req, resp)
  body = <h1>#{$vpim_title}</h1>See:<ul>

  $stuff.each do |name,path,protocol|
    #body << "<li><a href=\"#{protocol}://#{$host}:#{$port}#{path}\">#{name}</a>\n"
    #
    # $host is wrong, it lacks the domain - we should derive this from how
    # we are called, or just leave it out.
    body << "<li><a href=\"#{path}\">#{name}</a>\n"
  end

  body << "</ul>\n"

  resp.body = body
  resp['content-type'] = 'text/html'
  raise WEBrick::HTTPStatus::OK
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.