NAME
HTTP::Server::EV::Buffer - Non-blocking output buffer.
GLOBAL PARAMETERS
$HTTP::Server::EV::Buffer::autoflush = 1024*50; # Default buffered data size in bytes when buffer starts waiting socket to be writable to send data. Setting 0 disables buffering, data will be send as soon as socket becomes writable.
METHODS
new({ fh => $sock_handle , flush => autoflush threshold(optional), onerror => sub { onerror(disconect) optional callback} });
Creates new HTTP::Server::EV::Buffer object.
$buffer->print(@args);
Prints data to buffer.
$buffer->flush( $flush_threshold(optional) );
Sends all buffered data to socket and sets new flush threshold if $flush_threshold defined;
TODO
Implement onerror callback