Catalyst::Controller::Metal(3pm)

Catalyst::Controller::Metal3pm

Raw psgi handling in catalyst controllers

Usage

  package MyApp::Controller::Metalic;
  use parent 'Catalyst::Controller::Metal';
  sub call {
      my($self, $env) = @_;
      if ($env->{PATH_INFO} =~ m!^/hello!) {
          return [ 200, [ "Content-Type" => 'text/plain' ], [ "Hello World" ] ];
      } else {
          return [ 404, [], [] ];
      }
  }

Catalyst::Controller::Metal allows you to write a raw PSGI handler in your Catalyst application, inspired by Rails Metal that allows you to write raw Rack applications inside Ruby on Rails.

From libcatalyst-engine-psgi-perl 0.13+dfsg-1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.