interface documentation

class IProtocolNegotiationFactory(Interface): (source)

Known implementations: twisted.web.server.Site

View In Hierarchy

A provider of IProtocolNegotiationFactory can provide information about the various protocols that the factory can create implementations of. This can be used, for example, to provide protocol names for Next Protocol Negotiation and Application Layer Protocol Negotiation.

See Also
twisted.internet.ssl
Method acceptableProtocols Returns a list of protocols that can be spoken by the connection factory in the form of ALPN tokens, as laid out in the IANA registry for ALPN tokens.
def acceptableProtocols() -> List[bytes]: (source)

Returns a list of protocols that can be spoken by the connection factory in the form of ALPN tokens, as laid out in the IANA registry for ALPN tokens.

Returns
List[bytes]a list of ALPN tokens in order of preference.