Class: Web::FastCGIConnection

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

Constant Summary

Constants inherited from Connection

Connection::ENV_KEYS, Connection::EOL, Connection::HTTP_STATUS, Connection::MULTIPLE_KEY

Instance Attribute Summary

Attributes inherited from Connection

#application_loaded, #cgd, #content, #cookie, #env, #get, #local, #options, #output, #post, #raw_post_data, #request, #ruleset, #run_caller, #templates

Instance Method Summary collapse

Methods inherited from Connection

#[], #[]=, #add_header, #apply_options, #assert_content, #assert_cookie, #assert_form_includes, #assert_header, #assert_local_includes, #assert_template_not_used, #assert_template_used, #assert_vars_equals, #call_progress_hook, #charset, #charset=, #clear, #closed?, #content_type, #content_type=, #cookies_sent, create, downcase_env, #encoding, #encoding=, #flush, #full_content_type, #get_content, #get_cookie, #get_form, #get_form_fields, #get_form_value, #get_formreader, #get_header, #header, #header_sent?, #key?, #keys, #location, #location=, #merge_get_and_post, #mod_ruby_query_string, #multipart?, normalize, #nph?, #ob_get_flush, #ob_start, #parse_multipart, parse_query_string, #parse_request, #progress_hook, #read_multipart, #report_error, #report_error2stderr, #send_file, #send_header, #send_header_implementation, server_sniff, #session, #set_cookie, #set_full_content_type, #set_redirect, #setup_variables, #single_param, #split_content_type, #split_params, #status, #status=, #trace_output, trace_output_template, #unbuffered?

Methods included from Test::Unit::Assertions

#assert_includes

Constructor Details

#initialize(options = {}) ⇒ FastCGIConnection

Returns a new instance of FastCGIConnection.



5
6
7
8
9
10
11
12
13
# File 'lib/web/sapi/fastcgi.rb', line 5

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

Instance Method Details

#closeObject



15
16
17
18
19
# File 'lib/web/sapi/fastcgi.rb', line 15

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