def set_header(self, name, value):
        key = name.upper()
        if not key in _RESPONSE_HEADER_DICT:
            key = name
        self._headers[key] = _safe_str(value)
Set header by name and value.
dataset/ETHPy150Open michaelliao/transwarp/transwarp/web.py/Response.set_header