Example #1
0
 def set(self, name, value):
     """
     Set a name-value pair, any existing values for the name are removed.
     """
     assert isinstance_str(name)
     assert isinstance_str(value)
     _awscrt.http_headers_set(self._binding, name, value)
Example #2
0
    def set(self, name, value):
        """
        Set a name-value pair, any existing values for the name are removed.

        Args:
            name (str): Name.
            value (str): Value.
        """
        assert isinstance(name, str)
        assert isinstance(value, str)
        _awscrt.http_headers_set(self._binding, name, value)