[Dancer-users] send_file Content-Disposition

Matthew Vickers mvickers at quispiam.com
Mon Feb 7 23:45:55 CET 2011






Are we talking about merging the elements into the one function-call? 
send_file( 
$contents, 
type=>'text/foo', 
as_attachment=>'myfile.foo' ) 


>> My thoughts are more of fixing send_file itself, so Matthew (and anyone else) could just do send_file($filename). 

I like this idea, mostly because it makes it easier to remember and is more logical. Send Headers, Send File. 

But Richard's idea with some parameters being optional for backward compatability is also good. 

Matt 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20110208/843d31fd/attachment.htm>


More information about the Dancer-users mailing list