Gungho::Handler::Null - A Handler That Does Nothing


Gungho documentation Contained in the Gungho distribution.

Index


Code Index:

NAME

Top

Gungho::Handler::Null - A Handler That Does Nothing

METHODS

Top

handle_response

Prints out the URI that just got fetched and its status code


Gungho documentation Contained in the Gungho distribution.

# $Id: /mirror/gungho/lib/Gungho/Handler/Null.pm 31309 2007-11-29T13:16:23.310269Z lestrrat  $
#
# Copyright (c) 2007 Daisuke Maki <daisuke@endeworks.jp>
# All rights reserved.

package Gungho::Handler::Null;
use strict;
use warnings;
use base qw(Gungho::Handler);

sub handle_response
{
    my $self = shift;
    my $c    = shift;
    my $req  = shift;
    my $res  = shift;

    $c->log->info($req->uri . " responded with code " . $res->code);
}

1;