return send_file( $in_fh,
streaming => 1,
content_type => $mime_type,
callbacks => {
around => sub {
my ($writer, $content) = @_;
my $buf = '';
while( read( $content, $buf, VID_READ_LENGTH ) ) {
$writer->write( $buf );
}
}
},
);
####
Device::WebIO::Dancer:5371] error @2014-08-13 18:01:28> Route exception: isa check for "path_info" failed: GLOB(0x222a5c8) is not a string! at (eval 197) line 27.
##
##
return send_file( \'foo',
streaming => 1,
content_type => $mime_type,
callbacks => {
around => sub {
my ($writer, $content) = @_;
my $buf = '';
while( read( $in_fh, $buf, VID_READ_LENGTH ) ) {
$writer->write( $buf );
}
}
},
);
##
##
return send_file( '/dev/zero',
streaming => 1,
system_path => 1,
content_type => $mime_type,
callbacks => {
around => sub {
my ($writer, $content) = @_;
my $buf = '';
while( read( $in_fh, $buf, VID_READ_LENGTH ) ) {
$writer->write( $buf );
}
}
},
);
##
##
return send_file( '$in_fh,
streaming => 1,
content_type => $mime_type,
);