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
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
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)