Daisuke Maki > Gungho-0.09008 > Gungho::Provider::Inline

Download:
Gungho-0.09008.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  6
Open  4
View/Report Bugs
Source  

NAME ^

Gungho::Provider::Inline - Inline Provider

DESCRIPTION ^

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

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

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

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

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

METHODS ^

new

setup

add_request

dispatch

pushback_request

syntax highlighting: