'The WSGI I{write} callable returned by the I{start_response} callable.
The given bytes will be written to the response body, possibly flushing
the status and headers first.
This will be called in a non-I/O thread.'

def write(self, data):

    def wsgiWrite(started):
        if (not started):
            self._sendResponseHeaders()
        self.request.write(data)
    try:
        return blockingCallFromThread(self.reactor, wsgiWrite, self.started)
    finally:
        self.started = True
