WebDyne::PSGI
NAME
WebDyne::PSGI - PSGI application wrapper for WebDyne
SYNOPSIS
use WebDyne::PSGI;
my $app = WebDyne::PSGI->new(
root => '.',
index => 1,
)->to_app;
DESCRIPTION
WebDyne::PSGI wraps the core WebDyne handler in a PSGI application. It translates PSGI environment data into a WebDyne::Request::PSGI object, dispatches to the main WebDyne handler, and converts the result back into a PSGI response.
The module also contains special handling for API-style fallback resolution when a .psp file is not found directly from the incoming path.
METHODS
new(%options)
Construct a PSGI application wrapper. Options include
root,index,test, and related runtime settings.to_app()
Return the PSGI application code reference.
handler($env, @param)
Main PSGI entry point. Builds request and response objects, dispatches to WebDyne, and returns the PSGI response.
psgi_error(...)
Helper for PSGI-side error handling and conversion.
NOTES
The module relies on WebDyne::Request::PSGI for normalized request handling and on WebDyne::PSGI::Constant for middleware and environment defaults.
AUTHOR
Andrew Speer mailto:andrew.speer@isolutions.com.au
LICENSE and COPYRIGHT
This file is part of WebDyne.
This software is copyright (c) 2026 by Andrew Speer mailto:andrew.speer@isolutions.com.au.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Full license text is available at: