'Override C{http.Request.finish} for possible encoding.'

def finish(self):

    if self._encoder:
        data = self._encoder.finish()
        if data:
            http.Request.write(self, data)
    return http.Request.finish(self)
