code: def _read_http_priority(self, size, kind, flag):
          
          if size != 9:
              raise ProtocolError(f'HTTP/2: [Type {kind}] invalid format', quiet=True)
          if any((int(bit, base=2) for bit in flag)):
              raise ProtocolError(f'HTTP/2: [Type {kind}] invalid format', quiet=True)
  
          _edep = self._read_binary(4)
          _wght = self._read_unpack(1)
  
          data = dict(
              flags=None,
              exclusive=True if int(_edep[0], base=2) else False,
              deps=int(_edep[1:], base=2),
              weight=_wght + 1,
          )
  
          return data
docs: Read HTTP/2 PRIORITY frames.
  
          Structure of HTTP/2 PRIORITY frame [RFC 7540]:
              +-----------------------------------------------+
              |                 Length (24)                   |
              +---------------+---------------+---------------+
              |   Type (8)    |   Flags (8)   |
              +-+-------------+---------------+-------------------------------+
              |R|                 Stream Identifier (31)                      |
              +-+-------------------------------------------------------------+
              |E|                  Stream Dependency (31)                     |
              +-+-------------+-----------------------------------------------+
              |   Weight (8)  |
              +-+-------------+
  
              Octets      Bits        Name                    Description
                0           0     http.length             Length
                3          24     http.type               Type (2)
                4          32     http.flags              Flags
                5          40     -                       Reserved
                5          41     http.sid                Stream Identifier
                9          72     http.exclusive          Exclusive Flag
                9          73     http.deps               Stream Dependency
                13        104     http.weight             Weight