perl-Dancer2-Plugin-HTTP-Bundle - The missing HTTP bits of Dancer2 Bundled

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package filename perl-Dancer2-Plugin-HTTP-Bundle-0.02-alt1.noarch.rpm
Package name perl-Dancer2-Plugin-HTTP-Bundle
Package version 0.02
Package release alt1
Package architecture noarch
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 10.09 KB
Installed size 10.09 KB
There are a few Dancer2 Plugins to help building REST api's. This wrapper helps
loading them all at once, in the right order and will demonstrate the combined
use of them.
use Dancer2::Plugin::HTTP::Bundle
get '/secrets/:id' => http_auth_handler_can('find_something') => sub {
my $secret_object = http_auth_handler->find_something(param->{id})
or return sub { status (404 ) };
http_conditional (
etag            => $secret_object->etag,
last_modified   => $secret_object->date_last_modified
) =>sub { http_choose_accept (
'application/json' => sub { to_json $secret_object },
'application/xml'  => sub { to_xml  $secret_object },
{ default => undef }
) }
Or a little more verbose
use Dancer2::Plugin::HTTP:::Bundle
get '/secrets/:id' => http_auth_handler_can('find_something') => sub {
http_choose_accept (
[ 'application/json', 'application/xml' ] => sub {
my $secret_object =
unless ( $secret_object ) {
status (404); # Not Found
http_cache_max_age 3600;
http_conditional (
etag            => $secret_object->etag,
last_modified   => $secret_object->date_last_modified
) => sub {
for (http_accept) {
when ('application/json') {
return to_json ( ...


Package Version Architecture Repository
perl-Dancer2-Plugin-HTTP-Bundle - - -


Name Value
/usr/share/perl5 -
perl(Import/ -
rpmlib(PayloadIsLzma) -


Name Value
perl(Dancer2/Plugin/HTTP/ = 0.020
perl-Dancer2-Plugin-HTTP-Bundle = 0.02-alt1


Type URL
Binary Package perl-Dancer2-Plugin-HTTP-Bundle-0.02-alt1.noarch.rpm
Source Package perl-Dancer2-Plugin-HTTP-Bundle-0.02-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Dancer2-Plugin-HTTP-Bundle rpm package:
    # sudo apt-get install perl-Dancer2-Plugin-HTTP-Bundle



See Also

Package Description
perl-Dancer2-Plugin-HTTP-Caching-0.01-alt1.noarch.rpm RFC 7234 compliant
perl-Dancer2-Plugin-HTTP-ConditionalRequest-0.05-alt1.noarch.rpm RFC 7232 compliant
perl-Dancer2-Plugin-HTTP-ContentNegotiation-0.02-alt1.noarch.rpm Server-driven negotiation
perl-Dancer2-Plugin-JSManager-0.013-alt1.noarch.rpm Manage website javascript files with the Dancer2 configuration file
perl-Dancer2-Plugin-JWT-0.017-alt1.noarch.rpm JSON Web Token made simple for Dancer2
perl-Dancer2-Plugin-Locale-0.04-alt1.noarch.rpm Localize your Dancer2 application
perl-Dancer2-Plugin-Locale-Meta-0.006-alt1.noarch.rpm Interface to support multilanguage using Locale::Meta package
perl-Dancer2-Plugin-Locale-Wolowitz-0.05-alt1.noarch.rpm Dancer2's plugin for Locale::Wolowitz
perl-Dancer2-Plugin-LogContextual-1.152121-alt1.noarch.rpm wrap a Dancer2 plack app in the configured Log::Contextual logger
perl-Dancer2-Plugin-Map-Tube-0.02-alt1.noarch.rpm Dancer2 add-on for Map::Tube
perl-Dancer2-Plugin-MarkdownFilesToHTML-0.017-alt1.noarch.rpm Easy conversion of markdown documents to HTML for display in your Dancer2 website
perl-Dancer2-Plugin-Menu-0.009-alt1.noarch.rpm Automatically generate an HTML menu for your Dancer2 app
perl-Dancer2-Plugin-Minify-0.002-alt1.noarch.rpm Minify HTML, JavaScript and CSS
perl-Dancer2-Plugin-Model-1.152120-alt1.noarch.rpm gantry to hang a model layer onto Dancer2
perl-Dancer2-Plugin-Multilang-1.2.0-alt1.noarch.rpm Dancer2 Plugin to create multilanguage sites