Class: Web::CGD::Fastcgi

Inherits:
Web::CGD show all
Defined in:
lib/web/sapi/fastcgi.rb

Constant Summary

Constants included from Parser

Parser::EOL

Instance Attribute Summary

Attributes inherited from Web::CGD

#cookies, #env, #input, #multiple_params, #options, #output

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Web::CGD

create, #initialize, #nph?, #send_header, #send_nph_header

Methods included from Parser

#downcase_env, #mod_ruby_query_string, mod_ruby_query_string, #multipart?, #normalize, normalize, parse_cookie, #parse_cookie, #parse_multipart, #parse_params, #parse_query_string, parse_query_string, #parse_query_string_typed, #parse_request, #query_string, #read_multipart

Constructor Details

This class inherits a constructor from Web::CGD

Class Method Details

.new(options = {}) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/web/sapi/fastcgi.rb', line 8

def Fastcgi::new( options = {} )
  fcgi = options[:fcgi]
  
  options[:out]  = fcgi.out
  options[:in]   = fcgi.in
  options[:env]  = fcgi.env
  
  super(options) 
end

Instance Method Details

#closeObject



18
19
20
21
# File 'lib/web/sapi/fastcgi.rb', line 18

def close
  options[:fcgi].finish if options[:fcgi]
  options[:fcgi] = nil
end