PAGI 0.002002 Spec Clarifies How Runners Load Perl Web Applications
PAGI 0.002002 is a specification-only release that does not alter the runtime shape of a PAGI application, which remains a single asynchronous code reference. The update formalises how a general-purpose runner should reach that runtime boundary, borrowing a convention already established by PSGI and Plack. Runners must now accept either a native PAGI code reference or an instantiated object that exposes a to_app method, which is called exactly once during application loading. This approach ensures that route compilation, middleware setup, and other initialisation work occur at a predictable point before the server begins accepting traffic. Package-name strings and class-method calls are explicitly excluded as valid application providers under the new convention.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in