Adding support for writing an HTTP response in a connection