Clio
    
    
  
  
  
view release on metacpan or search on metacpan
Makefile.PL
README
bin/clio
examples/ajax.html
examples/clio.conf
examples/jquery-1.6.2.min.js
examples/jquery.stream-1.2.min.js
examples/plack-app.psgi
examples/plack.psgi
examples/show_time.pl
examples/test-streaming-app.psgi
examples/ws.html
lib/Clio.pm
lib/Clio/Client.pm
lib/Clio/ClientOutputFilter/LineEnd.pm
lib/Clio/ClientOutputFilter/jQueryStream.pm
lib/Clio/Config.pm
lib/Clio/Log.pm
lib/Clio/Log/Log4perl.pm
lib/Clio/Process.pm
lib/Clio/ProcessInputFilter/LineEnd.pm
examples/test-streaming-app.psgi view on Meta::CPAN
#test-streaming-app.psgi
#usage: "plackup test-streaming-app.psgi"
use strict;
use warnings;
my $fh;
sub print_resp {
    my $line;
    $fh || open( $fh, "<:encoding(UTF-8)", "/var/log/syslog" );
    $line = <$fh>;
    return $line if defined($line);
lib/Clio/Server/HTTP/Client/Stream.pm view on Meta::CPAN
package Clio::Server::HTTP::Client::Stream;
BEGIN {
  $Clio::Server::HTTP::Client::Stream::AUTHORITY = 'cpan:AJGB';
}
{
  $Clio::Server::HTTP::Client::Stream::VERSION = '0.02';
}
# ABSTRACT: Clio HTTP Client for streaming connections
use strict;
use Moo;
use Scalar::Util qw( blessed );
extends qw( Clio::Client );
has 'writer' => (
lib/Clio/Server/HTTP/Client/Stream.pm view on Meta::CPAN
1;
__END__
=pod
=encoding utf-8
=head1 NAME
Clio::Server::HTTP::Client::Stream - Clio HTTP Client for streaming connections
=head1 VERSION
version 0.02
=head1 DESCRIPTION
    # HTTP server with streaming clients
    <Server>
        Listen 0:12345
        Class HTTP
        <Client>
            Class Stream
            OutputFilter LineEnd
        </Client>
    </Server>
HTTP server with streaming capabilities.
Process output is streamed directly to client - the above example can be used
directly in a browser for read only data.
Extends of L<Clio::Client>.
=head1 ATTRIBUTES
=head2 writer
( run in 0.394 second using v1.01-cache-2.11-cpan-5dc5da66d9d )