DOKK / manpages / debian 12 / libpoe-component-server-simplehttp-perl / POE::Component::Server::SimpleHTTP::Response.3pm.en
POE::Component::Server::SimpleHTTP::Response(3pm) User Contributed Perl Documentation POE::Component::Server::SimpleHTTP::Response(3pm)

POE::Component::Server::SimpleHTTP::Response - Emulates a HTTP::Response object, used for SimpleHTTP

version 2.28

        use POE::Component::Server::SimpleHTTP::Response;
        my $response = POE::Component::Server::SimpleHTTP::Response->new( $wheel_id, $connection );
        print $response->connection->remote_ip;

        This module is used as a drop-in replacement, because we need to store the wheel ID + connection object for the response.
        Use $response->connection to get the SimpleHTTP::Connection object

EXPORT

Nothing.

        L<POE::Component::Server::SimpleHTTP>
        L<POE::Component::Server::SimpleHTTP::Connection>

Apocalypse <APOCAL@cpan.org>

This software is copyright (c) 2018 by Apocalypse, Chris Williams, Eriam Schaffter, Marlon Bailey and Philip Gwyn.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2022-12-06 perl v5.36.0