Plack-Middleware-Zstandard

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

            "YAML" : "0",
            "strict" : "0"
         }
      },
      "runtime" : {
         "requires" : {
            "Compress::Stream::Zstd::Compressor" : "0",
            "Plack::Middleware" : "0",
            "Plack::Util" : "0",
            "Plack::Util::Accessor" : "0",
            "Ref::Util" : "0",
            "perl" : "v5.20.0"
         }
      },
      "test" : {
         "requires" : {
            "Compress::Stream::Zstd::Decompressor" : "0",
            "HTTP::Request::Common" : "0",
            "Plack::Builder" : "0",
            "Test2::Tools::HTTP" : "0",
            "Test2::V0" : "0.000121",

META.yml  view on Meta::CPAN

license: perl
meta-spec:
  url: http://module-build.sourceforge.net/META-spec-v1.4.html
  version: '1.4'
name: Plack-Middleware-Zstandard
requires:
  Compress::Stream::Zstd::Compressor: '0'
  Plack::Middleware: '0'
  Plack::Util: '0'
  Plack::Util::Accessor: '0'
  Ref::Util: '0'
  perl: v5.20.0
resources:
  bugtracker: https://github.com/uperl/Plack-Middleware-Zstandard/issues
  homepage: https://metacpan.org/pod/Plack::Middleware::Zstandard
  repository: git://github.com/uperl/Plack-Middleware-Zstandard.git
version: '0.02'
x_generated_by_perl: v5.38.2
x_serialization_backend: 'YAML::Tiny version 1.74'
x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later'
x_use_unsafe_inc: 0

Makefile.PL  view on Meta::CPAN

  "MIN_PERL_VERSION" => "5.020000",
  "NAME"             => "Plack::Middleware::Zstandard",
  "PM"               => {
    "lib/Plack/Middleware/Zstandard.pm" => "\$(INST_LIB)/Plack/Middleware/Zstandard.pm"
  },
  "PREREQ_PM" => {
    "Compress::Stream::Zstd::Compressor" => 0,
    "Plack::Middleware"                  => 0,
    "Plack::Util"                        => 0,
    "Plack::Util::Accessor"              => 0,
    "Ref::Util"                          => 0
  },
  "TEST_REQUIRES" => {
    "Compress::Stream::Zstd::Decompressor" => 0,
    "HTTP::Request::Common"                => 0,
    "Plack::Builder"                       => 0,
    "Test2::Tools::HTTP"                   => 0,
    "Test2::V0"                            => "0.000121"
  },
  "VERSION" => "0.02",
  "test"    => {

Makefile.PL  view on Meta::CPAN

);

my %FallbackPrereqs = (
  "Compress::Stream::Zstd::Compressor"   => 0,
  "Compress::Stream::Zstd::Decompressor" => 0,
  "HTTP::Request::Common"                => 0,
  "Plack::Builder"                       => 0,
  "Plack::Middleware"                    => 0,
  "Plack::Util"                          => 0,
  "Plack::Util::Accessor"                => 0,
  "Ref::Util"                            => 0,
  "Test2::Tools::HTTP"                   => 0,
  "Test2::V0"                            => "0.000121"
);

unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
  delete $WriteMakefileArgs{TEST_REQUIRES};
  delete $WriteMakefileArgs{BUILD_REQUIRES};
  $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}

lib/Plack/Middleware/Zstandard.pm  view on Meta::CPAN

use 5.020;
use experimental qw( postderef signatures );

package Plack::Middleware::Zstandard 0.02 {

  # ABSTRACT: Compress response body with Zstandard

  use parent qw( Plack::Middleware );
  use Plack::Util ();
  use Plack::Util::Accessor qw( level _constructor_args vary );
  use Ref::Util qw( is_plain_arrayref );
  use Compress::Stream::Zstd::Compressor ();

  sub prepare_app ($self) {
    if(defined $self->level) {
      $self->_constructor_args([$self->level]);
    } else {
      $self->_constructor_args([]);
    }
  }

t/00_diag.t  view on Meta::CPAN


$modules{$_} = $_ for qw(
  Compress::Stream::Zstd::Compressor
  Compress::Stream::Zstd::Decompressor
  ExtUtils::MakeMaker
  HTTP::Request::Common
  Plack::Builder
  Plack::Middleware
  Plack::Util
  Plack::Util::Accessor
  Ref::Util
  Test2::Tools::HTTP
  Test2::V0
);



my @modules = sort keys %modules;

sub spacer ()
{



( run in 0.261 second using v1.01-cache-2.11-cpan-4d50c553e7e )