code: def _cookie_parse_impl(b):
      
      i = 0
      n = len(b)
  
      while i < n:
          match = _cookie_re.search(b + b";", i)
          if not match:
              break
  
          key = match.group("key").strip()
          value = match.group("val") or b""
          i = match.end(0)
  
          yield _cookie_unquote(key), _cookie_unquote(value)
docs: Lowlevel cookie parsing facility that operates on bytes.