def setRawHeaders(self, name, values):
        """
        Sets the raw representation of the given header.

        @type name: L{bytes} or L{unicode}
        @param name: The name of the HTTP header to set the values for.

        @type values: L{list} of L{bytes} or L{unicode} strings
        @param values: A list of strings each one being a header value of
            the given name.

        @return: L{None}
        """
        if not isinstance(values, list):
            raise TypeError("Header entry %r should be list but found "
                            "instance of %r instead" % (name, type(values)))

        name = _sanitizeLinearWhitespace(self._encodeName(name))
        encodedValues = [_sanitizeLinearWhitespace(v)
                         for v in self._encodeValues(values)]

        self._rawHeaders[name] = self._encodeValues(encodedValues)

        Sets the raw representation of the given header.

        @type name: L{bytes} or L{unicode}
        @param name: The name of the HTTP header to set the values for.

        @type values: L{list} of L{bytes} or L{unicode} strings
        @param values: A list of strings each one being a header value of
            the given name.

        @return: L{None}
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/http_headers.py