Dancer...r::PSGI(3pm)

✨ NAME ✨

Dancer::Handler::PSGI β€” it's a PSGI handler for Dancer apps, bestie πŸ’–

So you've got a Dancer app and you wanna run it inside a PSGI stack? Yeah. That's literally what this is for.


🌸 VERSION 🌸

This is version 1.3522 πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so picture this: your Dancer app doesn't have to live alone. This handler lets Dancer applications run as part of PSGI stacks, which is giving very much "glow up via Plack" energy πŸ‘‘

And the best part? You don't even have to do anything. Dancer will automatically clock when it's running in a PSGI environment and switch this handler on by itself. Which means when you call dance, you get back a valid PSGI application. No cap. It just knows 🧚

Wanna add some Plack middleware to the mix? You absolutely can, and you do it in your config file under the plack_middlewares key. For the whole tea on that, go read Dancer::Cookbook β€” it's giving required reading, fr fr πŸ“š

⚠️ Heads up though: you must have Plack installed for this handler to work. No Plack, no party. πŸ’€

πŸ’… USAGE πŸ’…

Here's the vibe. In your bin/app.pl, you set the apphandler like this:

# in bin/app.pl
set apphandler => 'Debug';

And then you run the app like this:

# then, run the app the following way
perl -d bin/app.pl GET '/some/path/to/test' 'with=parameters&other=42'

Debug mode slay, test that path, pass it your params. Easy. ✨


🫢 AUTHORS 🫢

Dancer contributors β€” the whole squad honestly πŸ’œ


πŸ‘‘ AUTHOR πŸ‘‘

Dancer Core Developers πŸ”₯


This software is copyright (c) 2010 by Alexis Sukrieh. 🌸

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. So go forth and remix, bestie β€” legally πŸŽ€


And that's the whole page, no crumbs left πŸ“ This was Dancer::Handler::PSGI from the User Contributed Perl Documentation, version 1.3522, served up on 2026-05-05 with perl v5.40.1. Stay iconic, run your PSGI stacks, and don't forget your middleware πŸ’…βœ¨

πŸ“¦ where this page comes from