Group
Extension

Matches 1

Github-Hooks-Receiver ( S/SO/SONGMU/Github-Hooks-Receiver-0.04.tar.gz, SONGMU, 2015; MetaCPAN )
Github-Hooks-Receiver/lib/Github/Hooks/Receiver.pm ( view source; MetaCPAN )
8001;
use strict;
use warnings;

our $VERSION = "0.04";

use Github::Hooks::Receiver::Event;

use JSON;
use Plack::Request;
use Class::Accessor::Lite (
    new => 1,
    ro => [qw/secret/],
);

sub ev
ST']];
        }

        # Parse JSON payload
        my $payload_json;
        if (lc $req->header('content-type') eq 'application/json') {
            $payload_json = $req->content;
        } elsif
ation/x-www-form-urlencoded') {
            $payload_json = $req->param('payload');
        }
        my $payload = eval { decode_json $payload_json }
            or return [400, [], ['BAD REQUEST']];

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