Is it possible to create a file bucket?

2005-09-15 Thread Nikolay Ananiev
I'd like to do the following: open $fh, '<', 'some_file'; # A very big file $b = APR::Bucket->new($ba, $fh); while($b->read($buffer, 2048)) { ... } or $b = APR::Bucket->new($ba, \*STDIN);

Re: Is it possible to create a file bucket?

2005-09-15 Thread Will Whittaker
On Fri, Sep 16, 2005 at 12:25:24AM +0300, Nikolay Ananiev wrote: > > > I'd like to do the following: > open $fh, '<', 'some_file'; # A very big file > $b = APR::Bucket->new($ba, $fh); > > while($b->read($buffer, 2048)) { > . > } > > or > $b = APR::Bucket->new($ba, \*STDIN); > > > > >

Re: Is it possible to create a file bucket?

2005-09-15 Thread Frank Wiles
On Fri, 16 Sep 2005 00:25:24 +0300 "Nikolay Ananiev" <[EMAIL PROTECTED]> wrote: > I'd like to do the following: > open $fh, '<', 'some_file'; # A very big file > $b = APR::Bucket->new($ba, $fh); > > while($b->read($buffer, 2048)) { > ... > } > > or > $b = APR::Bucket->new($ba, \*STDIN); Why

Re: Is it possible to create a file bucket?

2005-09-16 Thread Nikolay Ananiev
I'd like to use APR::Request's custom parser under some different environments like FastCGI, PerlEx and PersistentPerl. All these tie STDIN to some package, which defines methods to read a particular socket. APR::Request::CGI doesn't work, because the operating system's STDIN is not used. Current