Displaying 1 result from an estimated 1 matches for "send_status_no_connection_close".
2007 Jul 30
1
streaming response
...response.write("Content-type: text/json\n\n")
while true
sleep wait
response.write json
end
response.done = true
end
writing the headers myself. i''d much prefer to do something like this:
Proc.new do
response.send_status_no_connection_close(nil) # nil = no content-length
response.send_header
response.write("\n\n")
while true
sleep wait
response.write json
end
response.done = true
end
Does anyone have suggestions on how to clean up my code so that I
don'&...