The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Gungho::Handler::Inline - Inline Handler

DESCRIPTION

Sometimes you don't need the full power of an independent Gungho Handler and or Handler. In those cases, Gungho::Handler::Inline saves you from creating a separate package for a Handler.

You can simply pass a code reference as the the provider config:

  Gungho->run(
    {
       handler => sub { ... }
    }
  );

And it will be called via Gungho::Handler::Inline.

The code reference you specified will be called as if it were a method in the Gungho::Handler::Inline package.

METHODS

setup

handle_response