• octal's avatar
    Major rework of streams. · ad8e24eb
    octal authored
    An Http Response is now written in two phases:
       - First the headers are written, and then a ResponseWriter is
         returned once all headers have been written.
       - A ResponseWriter is basically a wrapper around a NetworkStream
         which is a streambuf, allowing it to be used with an ostream object
       - Once a ResponseWriter has been constructed, headers become
         read-only and can not be written anymore
    ad8e24eb
main.cc 1.78 KB