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 Alsotwisted.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(): (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.

Returnsa list of ALPN tokens in order of preference. (type: List[bytes])
API Documentation for Twisted, generated by pydoctor 21.2.0 at 2021-02-28 21:00:42.