Query: catalyst::controller::metal
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Catalyst::Controller::Metal(3pm) User Contributed Perl Documentation Catalyst::Controller::Metal(3pm)NAMECatalyst::Controller::Metal - Raw PSGI handling in Catalyst controllersSYNOPSISpackage 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.SEE ALSORails Metal. perl v5.12.3 2011-03-21 Catalyst::Controller::Metal(3pm)
Similar Topics in the Unix Linux Community |
---|
Introduction |
Detecting unused variables... |
One instance of comparing grep and awk |
Weird 'find' results |
New UNIX and Linux History Sections |