in reply to Re^2: HTTP::Server::Simple forking/SSL/IPv6
in thread HTTP::Server::Simple forking/SSL/IPv6
Moving from HTTP::Server::Simple to a PSGI setup using Plack shouldn't be hard. In HTTP::Server::Simple(::CGI), you have the subroutine handle_request, which prints its output. In PSGI, you have an anonymous subroutine that returns the HTML to be sent.
This is the part you need to change, instead of printing your HTML, you return a triplet of [ $status, $headers, $body ].
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: HTTP::Server::Simple forking/SSL/IPv6
by cavac (Parson) on Oct 24, 2011 at 14:26 UTC | |
by Corion (Patriarch) on Oct 24, 2011 at 14:43 UTC |
In Section
Meditations