in reply to RFC: Archive::Tar::Streamed
I take a callback from the caller, and call it to do any output. I pass the callback into HTTP::Request to retrieve the file from the remote site and pass it through to the web client.
Any ideas on a clean way to build a generic module that I could use are welcome...for each file { HEAD the file on the remote server to get the file size use Archive::Tar::File's internal _format_tar_entry to write the t +ar header use HTTP::Request to retrieve the file from the remote server, pas +sing it the callback for output write TAR_PAD to fill out the BLOCK } write TAR_END x 2
|
|---|