Exemplo n.º 1
0
 def get_values(self, name):
     """
     Return an iterator over the values for this name.
     """
     assert isinstance_str(name)
     name = name.lower()
     for i in range(_awscrt.http_headers_count(self._binding)):
         name_i, value_i = _awscrt.http_headers_get_index(self._binding, i)
         if name_i.lower() == name:
             yield value_i
Exemplo n.º 2
0
    def get_values(self, name):
        """
        Return an iterator over the values for this name.

        Args:
            name (str): Name.

        Returns:
            Iterator[Tuple[str, str]]:
        """
        assert isinstance(name, str)
        name = name.lower()
        for i in range(_awscrt.http_headers_count(self._binding)):
            name_i, value_i = _awscrt.http_headers_get_index(self._binding, i)
            if name_i.lower() == name:
                yield value_i
Exemplo n.º 3
0
 def __iter__(self):
     """
     Iterate over all (name,value) pairs.
     """
     for i in range(_awscrt.http_headers_count(self._binding)):
         yield _awscrt.http_headers_get_index(self._binding, i)