'Sends a response to the client.'

def Send(self, data, status=200, ctype='application/octet-stream', additional_headers=None, last_modified=0):

    if additional_headers:
        header_strings = [('%s:    %s\r\n' % (name, val)) for (name, val) in additional_headers.iteritems()]
    else:
        header_strings = []
    data = ('HTTP/1.0    %s\r\nServer:    GRR    Server\r\nContent-type:    %s\r\nContent-Length:    %d\r\nLast-Modified:    %s\r\n%s\r\n%s' % (self.statustext[status], ctype, len(data), self.date_time_string(last_modified), ''.join(header_strings), data))
    self.wfile.write(data)
