Amon2::Plugin::Web::Raw - render raw data
use Amon2::Plugin::Web::Raw;
use Amon2::Lite;
__PACKAGE__->load_plugins(qw/Web::Raw/);
get '/image' => sub {
my $c = shift;
return $c->render_raw(png => $png_data);
};
Amon2::Plugin::Web::Raw generate raw data response.
Generate instance of Plack::Response of raw data. support raw type see $Amon2::Plugin::Web::Raw::CONTENT_TYPE_MAP
koba04 [email protected]
Copyright 2013- koba04
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.