Доброго всем
¡ ¡ ¡ ALL GLORY TO GLORIA ! ! !
Mojolicious::Plugin::StaticAttachment - Add 'Content-Disposition' header for specified statics.
Mojolicious plugin.
$app->plugin('StaticAttachment' => paths => [ '/foo.txt', 'bar.portable.doc.format'=>{content_type=>'application/pdf', filename=>"файлик.pdf"}])
Version 0.002
Mojolicious
Mojolicious::Plugin::RenderFile
Михаил Че (Mikhail Che), <mche[-at-]cpan.org>
<mche[-at-]cpan.org>
Please report any bugs or feature requests at https://github.com/mche/Mojolicious-Plugin-StaticAttachment/issues. Pull requests also welcome.
Copyright 2017 Mikhail Che.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Mojolicious::Plugin::StaticAttachment, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::StaticAttachment
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::StaticAttachment
For more information on module installation, please visit the detailed CPAN module installation guide.