Class: Web::WebrickConnection

Inherits:
Connection show all
Defined in:
lib/web/sapi/webrick.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, #close, #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?, #initialize, #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, 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

This class inherits a constructor from Web::Connection

Instance Method Details

#send_header_implementationObject



19
20
21
22
23
24
25
26
27
# File 'lib/web/sapi/webrick.rb', line 19

def send_header_implementation
  res = options[:webrick_response]
  res.status = Web::status.to_i
  Web::header.each do |key, val|
    unless key =~ /status/i
      res[key] = val.join(", ")
    end
  end
end