---
name: "Dancer::Handler::PSGI"
section: "3pm"
platform: "linux"
package: "libdancer-perl"
version: "1.3521+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Dancer::Handler::PSGI"
---

# Dancer::Handler::PSGI(3pm)

a PSGI handler for Dancer applications

## NAME

Dancer::Handler::PSGI - a PSGI handler for Dancer applications

## VERSION

version 1.3521

## DESCRIPTION

This handler allows Dancer applications to run as part of PSGI stacks. Dancer will automatically determine when running in a PSGI environment and enable this handler, such that calling `"dance"` will return a valid PSGI application.

You may enable Plack middleware in your configuration file under the `"plack_middlewares"` key. See Dancer::Cookbook for more information.

Note that you must have Plack installed for this handler to work.

## USAGE

```
    # in bin/app.pl
    set apphandler => 'Debug';
    # then, run the app the following way
    perl -d bin/app.pl GET '/some/path/to/test' 'with=parameters&other=42'
```

## AUTHORS

Dancer contributors

## AUTHOR

Dancer Core Developers

## COPYRIGHT AND LICENSE

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.
