code: def _read_http_ping(self, size, kind, flag):
          
          if size != 8:
              raise ProtocolError(f'HTTP/2: [Type {kind}] invalid format', quiet=True)
  
          _flag = dict(
              ACK=False,      # bit 0
          )
          for index, bit in enumerate(flag):
              if index == 0 and bit:
                  _flag['ACK'] = True
              elif bit:
                  raise ProtocolError(f'HTTP/2: [Type {kind}] invalid format', quiet=True)
              else:
                  continue
  
          _data = self._read_fileng(8)
  
          data = dict(
              flags=_flag,
              data=_data,
          )
  
          return data
docs: Read HTTP/2 PING frames.
  
          Structure of HTTP/2 PING frame [RFC 7540]:
              +-----------------------------------------------+
              |                 Length (24)                   |
              +---------------+---------------+---------------+
              |   Type (8)    |   Flags (8)   |
              +-+-------------+---------------+-------------------------------+
              |R|                 Stream Identifier (31)                      |
              +---------------------------------------------------------------+
              |                                                               |
              |                      Opaque Data (64)                         |
              |                                                               |
              +---------------------------------------------------------------+
  
              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.data               Opaque Data