encyclopegia.org

Plack (software)

using Perl, Plack and PSGI. Plack is a Perl web application programming framework inspired by Rack for Ruby and WSGI for Python, and it is the project behind the PSGI specification used by other frameworks such as Catalyst and Dancer. Plack allows for testing of Perl web applications without a live web server. Plackup is a command line utility to run PSGI applications from the command line.

using Perl, Plack and PSGI.]] Plack is a Perl web application programming framework inspired by Rack for Ruby and WSGI for Python, and it is the project behind the PSGI specification used by other frameworks such as Catalyst and Dancer. Plack allows for testing of Perl web applications without a live web server. Plackup is a command line utility to run PSGI applications from the command line. ==PSGI== PSGI or Perl Web Server Gateway Interface is an interface between web servers and web applications and frameworks written in the Perl programming language that allows writing portable applications that can be run as standalone servers or using CGI, FastCGI, mod_perl, et al. It is inspired by the Web Server Gateway Interface for Python, Rack for Ruby and JSGI for JavaScript. A PSGI application is a Perl subroutine that accepts arguments as a single hash reference and returns a reference to an array of three elements: an HTTP status code, a reference to an array of HTTP headers and a reference to an array of HTTP body lines (usually a generated HTML document) or a filehandle-like object. ==Supported backends== Plack supports the following server backends: CGI SCGI FastCGI mod_perl under Apache 1.3 and 2.0 Standalone HTTP server included in Plack HTTP::Server::Simple Corona Starman Twiggy AnyEvent::HTTPD AnyEvent::ReverseHTTP ==Examples== Using the default standalone HTTP server: $ plackup app.psgi HTTP::Server::PSGI: Accepting connections at http://0:5000/ Running as a FastCGI daemon listening on a Unix socket, ready to be used by any Web server with FastCGI support: $ plackup -s FCGI -listen /tmp/fcgi.sock app.psgi FastCGI: manager (pid 3336): initialized FastCGI: manager (pid 3336): server (pid 3337) started FastCGI: server (pid 3337): initialized A working Hello world application run as a one-liner: $ plackup -e 'sub { [200, ["Content-Type" => "text/plain"], ["Hello, world!"]] }' HTTP::Server::PSGI: Accepting connections at http://0:5000/ The command above starts an HTTP server listening on port 5000 of every local interface (IP address) and returns this 200 OK response to every HTTP request: HTTP/1.0 200 OK Date: Fri, 19 Mar 2010 23:34:10 GMT Server: HTTP::Server::PSGI Content-Type: text/plain Content-Length: 13 Hello, world! ==References== ==External links== PSGI and Plack website Plack documentation plackup manual

References

No reference rows published for this article.

Cite this article

MLA

"Plack (software)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/plack-software. Accessed 24 November 2026.

Chicago

"Plack (software)." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/plack-software.

APA

encyclopegia.org. (2026). Plack (software). Retrieved November 24, 2026, from https://encyclopegia.org/wiki/plack-software

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1350504700 · 0.5 · snapshot enwiki-001350504700

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.