in reply to Write a Filehandle w/Dancer2
Annnnndddddd . . . it's not actually implemented in Dancer2 yet. Stepping through with the debugger, into Dancer2::Core::App::send_file() finds:
571==> ( ref($path) eq 'SCALAR' ) 572 and return $$path;
Which explains why it just returns when a scalarref is passed. There's also nowhere in the code that actually handles the callback. Plus, there's a comment at the end of:
595 # TODO Streaming support
So, that's that, then.
"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Write a Filehandle w/Dancer2
by Anonymous Monk on Aug 14, 2014 at 01:16 UTC | |
by hardburn (Abbot) on Aug 14, 2014 at 02:47 UTC | |
by Anonymous Monk on Aug 14, 2014 at 07:12 UTC |