'End the headers of a request that\'s in progress'

def endheaders(self, data=None):

    self.current_request.state = u'body'
    self.last_request = self.current_request
    if (data is not None):
        self.send(data)
