'Create a new response header, replacing any previously defined
headers with the same name.'

def set_header(self, name, value):

    self._headers[_hkey(name)] = [(value if isinstance(value, unicode) else str(value))]
