Async-Microservice

 view release on metacpan or  search on metacpan

Build.PL  view on Meta::CPAN

        'Test::Most'           => 0,
        'Test::Time'           => 0,
        'Path::Class'          => 0,
        'Pod::Simple::Text'    => 0,
        'Test::WWW::Mechanize' => 0,
    },
    requires => {
        'perl'                       => 5.010,
        'Twiggy'                     => 0,
        'Plack::Request'             => 0,
        'Try::Tiny'                  => 0,
        'Path::Class'                => 0,
        'Moose'                      => 0,
        'URI'                        => 0,
        'AnyEvent::IO'               => 0,
        'MooseX::Types::Path::Class' => 0,
        'Path::Router'               => 0,
        'JSON::XS'                   => 0,
        'Plack::MIME'                => 0,
        'DateTime'                   => 0,
        'Time::HiRes'                => 0,

META.json  view on Meta::CPAN

            "Future::AsyncAwait" : "0",
            "JSON::XS" : "0",
            "Log::Any" : "0",
            "Moose" : "0",
            "MooseX::Types::Path::Class" : "0",
            "Path::Class" : "0",
            "Path::Router" : "0",
            "Plack::MIME" : "0",
            "Plack::Request" : "0",
            "Time::HiRes" : "0",
            "Try::Tiny" : "0",
            "Twiggy" : "0",
            "URI" : "0",
            "namespace::autoclean" : "0",
            "perl" : "5.01"
         }
      }
   },
   "provides" : {
      "Async::Microservice" : {
         "file" : "lib/Async/Microservice.pm",

META.yml  view on Meta::CPAN

  Future::AsyncAwait: '0'
  JSON::XS: '0'
  Log::Any: '0'
  Moose: '0'
  MooseX::Types::Path::Class: '0'
  Path::Class: '0'
  Path::Router: '0'
  Plack::MIME: '0'
  Plack::Request: '0'
  Time::HiRes: '0'
  Try::Tiny: '0'
  Twiggy: '0'
  URI: '0'
  namespace::autoclean: '0'
  perl: '5.01'
resources:
  bugtracker: https://github.com/jozef/Async-Microservice/issues
  license: http://dev.perl.org/licenses/
  repository: https://github.com/jozef/Async-Microservice.git
version: '0.04'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'

lib/Async/Microservice.pm  view on Meta::CPAN

use warnings;
use 5.010;
use utf8;

our $VERSION = '0.04';

use Moose::Role;
requires qw(get_routes service_name);

use Plack::Request;
use Try::Tiny;
use Path::Class qw(dir file);
use MooseX::Types::Path::Class;
use Path::Router;
use FindBin qw($Bin);
use Async::MicroserviceReq;
use Log::Any qw($log);

has 'api_version' => (
    is      => 'ro',
    isa     => 'Int',

lib/Async/MicroserviceReq.pm  view on Meta::CPAN

use strict;
use warnings;
use 5.010;

our $VERSION = '0.04';

use Moose;
use namespace::autoclean;
use URI;
use AnyEvent::IO qw(aio_load);
use Try::Tiny;
use JSON::XS;
use Plack::MIME;
use MooseX::Types::Path::Class;

our $json             = JSON::XS->new->utf8->pretty->canonical;
our @no_cache_headers = ('Cache-Control' => 'private, max-age=0', 'Expires' => '-1');
our $pending_req      = 0;

has 'method'  => (is => 'ro', isa => 'Str',    required => 1);
has 'headers' => (is => 'ro', isa => 'Object', required => 1);



( run in 0.620 second using v1.01-cache-2.11-cpan-05444aca049 )