class Tofu::CGITofulet

Public Class Methods

new(bartender, *args) click to toggle source
Calls superclass method
# File lib/tofu.rb, line 462
def initialize(bartender, *args)
  @bartender = bartender
  super(*args)
end

Public Instance Methods

service(req, res) click to toggle source
# File lib/tofu.rb, line 467
def service(req, res)
  Context.new(req, res).service(@bartender)
end
start(env, stdin, stdout) click to toggle source
Calls superclass method
# File lib/tofu.rb, line 471
def start(env, stdin, stdout)
  if env["SERVER_SOFTWARE"]
    @config[:ServerSoftware] = env["SERVER_SOFTWARE"]
  end
  if %r{HTTP/(\d+\.\d+)} =~ env["SERVER_PROTOCOL"]
    @config[:HTTPVersion] = $1
  end
  super(env, stdin, stdout)
end