Skip to content

koba04/Amon2-Plugin-Web-Raw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Amon2::Plugin::Web::Raw - render raw data

SYNOPSIS

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);
};

DESCRIPTION

Amon2::Plugin::Web::Raw generate raw data response.

METHODS $c->render_raw($type => $data);

Generate instance of Plack::Response of raw data. support raw type see $Amon2::Plugin::Web::Raw::CONTENT_TYPE_MAP

AUTHOR

koba04 koba0004@gmail.com

COPYRIGHT

Copyright 2013- koba04

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages