Sha256: f704d2d2ef7fcbdfe0b9b504216c00c208c56af4f7ffc6f276d87f7bc880507d
Contents?: true
Size: 678 Bytes
Versions: 61
Compression:
Stored size: 678 Bytes
Contents
class CGIIO < Spider::ControllerIO attr_reader :headers_sent def initialize(out, controller_response) @out = out @controller_response = controller_response @headers_sent = false end def write(msg) send_headers unless @headers_sent @out << msg end def send_headers Spider::Logger.debug("CGI sending headers:") @controller_response.prepare_headers @headers_sent = true @out << "Status: #{@controller_response.status}\n" @controller_response.headers.each do |key, val| @out << "#{key}: #{val}\n" end @out << "\n" end end
Version data entries
61 entries across 61 versions & 1 rubygems