Return a HTTP response.

Also rewrote Stream.write functions.