Flush any pending data from the buffer to the request

def _flushBuffer(self, request):
        '''Flush any pending data from the buffer to the request'''
        assert request is self.requestSession.request
        self.requestSession.writeData(self.buffer)
        self.buffer = []