Group
Extension

Matches 1

Dancer2-Plugin-ProgressStatus ( S/SH/SHUMPHREY/Dancer2-Plugin-ProgressStatus-0.018.tar.gz, SHUMPHREY, 2015; MetaCPAN )
Dancer2-Plugin-ProgressStatus/lib/Dancer2/Plugin/ProgressStatus.pm ( view source; MetaCPAN )
t;
use warnings;

use Digest::MD5 qw/md5_hex/;
use Path::Tiny;
use File::Path qw//;
use Carp;
use JSON qw//;

use Dancer2::Plugin;
use Dancer2::Plugin::ProgressStatus::Object;
use Dancer2::Core::Respo
    # We must specify the content_type and encoding here because this plugin
    # only works for json, and the D2 config might have other settings
    $dsl->app->add_route(
        method  => 'get',
status(200);
            $context->response->content(JSON->new->utf8->encode($data));
            $context->response->content_type('application/json');
            $context->response->is_encoded(1);


Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.