'Sets the given response header name and value.
If a datetime is given, we automatically format it according to the
HTTP specification. If the value is not a string, we convert it to
a string. All header values are then encoded as UTF-8.'

def set_header(self, name, value):

    self._headers[name] = self._convert_header_value(value)
