To make testing easier, we need to be able to treat it like a socket stream and use the super class everywhere we use types. A pattern exists for this already, e.g., at http://www.cplusplus.com/forum/general/58677/, so adapt this code and add tests that exercise the HTTP server using string streams instead of actual sockets.
To make testing easier, we need to be able to treat it like a socket stream and use the super class everywhere we use types. A pattern exists for this already, e.g., at http://www.cplusplus.com/forum/general/58677/, so adapt this code and add tests that exercise the HTTP server using string streams instead of actual sockets.