Group
Extension

Matches 1

WWW-GitHub-PostReceiveHook ( M/MA/MATTP/WWW-GitHub-PostReceiveHook-0.002.tar.gz, MATTP, 2011; MetaCPAN )
WWW-GitHub-PostReceiveHook/lib/WWW/GitHub/PostReceiveHook.pm ( view source; MetaCPAN )
RSION = '0.002';
}
# ABSTRACT: A simple means of receiving GitHub's web hooks

use Try::Tiny;
use JSON;

has routes => (
    is        => 'rw',
    predicate => 'has_routes',
    required  => 1,
    i
       my $json = decode_json $payload;

                # callback
                $self->routes->{ "/$path" }->( $json );
            }
            catch {
                # malformed JSON string, n
ect, number, string or atom, at character offset 0 ?
                # you are trying to POST non JSON data. don't do that.
                warn "Caught exception: /$path: attempted to trigger callbac

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