HTTP::Server::EV::Buffer - Non-blocking output buffer.
$HTTP::Server::EV::Buffer::autoflush = 1024*10; # Default buffered data size in bytes when buffer starts waiting socket to be writable to send data. Setting 0 disables buffering, data will be sent as soon as socket becomes writable.
Creates new HTTP::Server::EV::Buffer object.
Prints data to buffer.
Sends all buffered data to socket and sets new flush threshold if $flush_threshold defined;
Set onerror callback, which called when client disconeted before cerver closed connection.
Call this after ->new if you use H:S:E:Buffer without HTTP::Server::EV and need onerror callback. Don't think about it when use buffer object from HTTP::Server::EV::CGI object.