Class: CGIIO
Constant Summary
Spider::ControllerIO::BUFSIZE
Instance Attribute Summary collapse
Instance Method Summary
collapse
#flush, #set_body_io
Constructor Details
#initialize(out, controller_response) ⇒ CGIIO
4
5
6
7
8
|
# File 'lib/spiderfw/http/adapters/cgi_io.rb', line 4
def initialize(out, controller_response)
@out = out
@controller_response = controller_response
= false
end
|
Instance Attribute Details
Returns the value of attribute headers_sent.
2
3
4
|
# File 'lib/spiderfw/http/adapters/cgi_io.rb', line 2
def
end
|
Instance Method Details
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/spiderfw/http/adapters/cgi_io.rb', line 15
def
Spider::Logger.debug("CGI sending headers:")
@controller_response.
= true
@out << "Status: #{@controller_response.status}\n"
@controller_response..each do |key, val|
@out << "#{key}: #{val}\n"
end
@out << "\n"
end
|
#write(msg) ⇒ Object
10
11
12
13
|
# File 'lib/spiderfw/http/adapters/cgi_io.rb', line 10
def write(msg)
unless
@out << msg
end
|