Dancer2-Plugin-SendAs
view release on metacpan or search on metacpan
Send the content "serialized" using the specified serializer, or as
HTML if no matching serializer is found.
Any available Dancer2 serializer may be used. Serializers are loaded at
runtime (if necessary). Both the uppercase 'type' and the provided case
of the type are used to find an appropriate serializer class to use.
The implementation of send_as uses Dancer2's send_file. Your route will
be exited immediately when send_as is executed. send_file will stream
content back to the client if your server supports psgi streaming.
ACKNOWLEDGEMENTS
This module has been written during the Perl Dancer 2015
<https://www.perl.dance/> conference.
AUTHOR
Russell Jenkins <russellj@cpan.org>
lib/Dancer2/Plugin/SendAs.pm view on Meta::CPAN
Send the content "serialized" using the specified serializer, or as HTML if no
matching serializer is found.
Any available Dancer2 serializer may be used. Serializers are loaded at runtime
(if necessary). Both the uppercase 'type' and the provided case of the type are
used to find an appropriate serializer class to use.
The implementation of C<send_as> uses Dancer2's C<send_file>. Your route will be
exited immediately when C<send_as> is executed. C<send_file> will stream
content back to the client if your server supports psgi streaming.
=head1 ACKNOWLEDGEMENTS
This module has been written during the
L<Perl Dancer 2015|https://www.perl.dance/> conference.
=head1 AUTHOR
Russell Jenkins <russellj@cpan.org>
( run in 0.246 second using v1.01-cache-2.11-cpan-4d50c553e7e )