View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Mons Anderson > AnyEvent-Handle-Writer-0.02 > README


Annotate this POD

View/Report Bugs

unshift_write(type => @args) =head2 unshift_write($cb->($handle)) Analogically to "unshift_read", it unshift write data at the beginngin of queue. The only recommended usage is from write callback

       $handle->push_write(sub {
          my $h = shift;
          return 1;
   # The output will be "123"

  push_sendfile($filename, [$size, [$offset]]);
    Push sendfile operation into write queue. If sendfile cannot be found
    (Sys::Sendfile) or if it fails with one of ENOSYS, ENOTSUP, EOPNOTSUPP,
    EAFNOSUPPORT, EPROTOTYPE or ENOTSOCK, it will be emulated with chunked

       $handle->push_write("HTTP/1.0 200 OK\nContent-length: $size\n...\n\n");
       $handle->push_sendfile($file, $size, $offset);

ACKNOWLEDGEMENTS AUTHOR Mons Anderson, "<mons at>"

LICENSE This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

syntax highlighting: