/usr/share/perl5/POE/Component/Server/HTTP/Response.pm is in libpoe-component-server-http-perl 0.09-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | use strict;
package POE::Component::Server::HTTP::Response;
use vars qw(@ISA);
use HTTP::Response;
@ISA = qw(HTTP::Response);
use POE;
sub streaming {
my $self = shift;
if (@_) {
if ($_[0]) {
$self->{streaming} = 1;
}
else {
$self->{streaming} = 0;
}
}
return $self->{streaming};
}
sub is_error {
my $self = shift;
if (@_) {
if ($_[0]) {
$self->{is_error} = 1;
}
else {
$self->{is_error} = 0;
}
}
return $self->{is_error};
}
sub send {
my $self = shift;
$self->{connection}->{wheel}->put(@_);
}
sub continue {
my $self = shift;
$poe_kernel->post($self->{connection}->{session},
'execute' => $self->{connection}->{my_id});
}
sub close {
my $self = shift;
$self->{streaming} = 0;
shift @{$self->{connection}->{handlers}->{Queue}};
}
1;
|