pub type ProtocolType = String;
Expand description
ProtocolType defines the application protocol accepted by a Listener. Implementations are not required to accept all the defined protocols. If an implementation does not support a specified protocol, it should raise a “Detached” condition for the affected Listener with a reason of “UnsupportedProtocol”.
Core ProtocolType values are listed in the table below.
Implementations can define their own protocols if a core ProtocolType does not
exist. Such definitions must use prefixed name, such as
mycompany.com/my-custom-protocol
. Un-prefixed names are reserved for core
protocols. Any protocol defined by implementations will fall under custom
conformance.
Valid values include:
- “HTTP” - Core support
- “example.com/bar” - Implementation-specific support
Invalid values include:
- “example.com” - must include path if domain is used
- “foo.example.com” - must include path if domain is used
Aliased Type§
struct ProtocolType { /* private fields */ }