View on
MetaCPAN
Kazuhiro Osawa > HTTP-Engine-0.1.8 > HTTP::Engine::Interface::Test

Download:
HTTP-Engine-0.1.8.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Source   Latest Release: HTTP-Engine-0.03005

NAME ^

HTTP::Engine::Interface::Test - HTTP::Engine Test Interface

SYNOPSIS ^

  use Data::Dumper;
  use HTTP::Engine;
  use HTTP::Request;
  my $response = HTTP::Engine->new(
      interface => {
          module => 'Test',
          request_handler => sub {
              my $req = shift;
              HTTP::Engine::Response->new( body => Dumper($req) );
          }
      },
  )->run(HTTP::Request->new( GET => 'http://localhost/' ), env => \%ENV);
  print $response->content;

DESCRIPTION ^

HTTP::Engine::Interface::Test is test engine base class

SEE ALSO ^

HTTP::Engine::Test::Request

AUTHOR ^

Kazuhiro Osawa <ko@yappo.ne.jp>

syntax highlighting: