Forums » Development »
Send chunked data from controller (=> no)
Added by luigifab ! over 10 years ago
Hello,
Is it possible to do this in ruby?
Yeah, I have a good reason to send one octet to browser before a long processing.
class MyController < AttachmentsController def uploadzip # <this> (in php) header('Content-Type: text/plain; charset=utf-8'); header('Cache-Control: no-cache, must-revalidate'); header('Pragma: no-cache'); header('Content-Encoding: chunked', true); header('Connection: Keep-Alive', true); ini_set('output_buffering', false); ini_set('implicit_flush', true); ob_implicit_flush(true); for ($i = 0; $i < ob_get_level(); $i++) ob_end_clean(); echo ' '; # </this> # ruby processing... echo 'okay!'; end end
Replies (1)
RE: Send chunked data from controller - Added by luigifab ! about 10 years ago
Okay... I think it's impossible.