• Kenton Varda's avatar
    Add optimization helpers to async streams. · 86410ee7
    Kenton Varda authored
    - AsyncInputStream::tryGetLength() can report the amount of data the stream will produce. Useful for implementing HTTP Content-Length header.
    - AsyncInputStream::pumpTo() copies data from an input stream to an output stream, using double-dispatch to find an optimal approach.
    86410ee7
async-io.h 23.7 KB