Class Maveric::FCGI
In: maveric/fastcgi.rb
Parent: Object

Methods

new  

Public Class methods

[Source]

    # File maveric/fastcgi.rb, line 4
 4:   def initialize maveric, *opts
 5:     @maveric = maveric.new *opts
 6:     ::FCGI.each do |req|
 7:       req_body = ::StringIO.new( req.in.read || '' )
 8:       result = @maveric.dispatch req_body, req.env
 9:       req.out << "Status: 200 OK\r\n\r\n"
10:       req.out << result.to_s
11:       req.finish
12:     end
13:   end

[Validate]