Go to the latest version of this document.

# ``twisted`.`internet`.`interfaces`.`IProtocolNegotiationFactory``

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.