protocol.py 272 B

12345678910111213141516
  1. from __future__ import annotations
  2. from enum import Enum
  3. class ProtocolType(Enum):
  4. """A protocol supported by Connect."""
  5. CONNECT = 1
  6. """The Connect protocol."""
  7. GRPC = 2
  8. """The gRPC protocol."""
  9. GRPC_WEB = 3
  10. """The gRPC-Web protocol."""