mockwebserver / okhttp3.mockwebserver / MockWebServer / setProtocolNegotiationEnabled

setProtocolNegotiationEnabled

fun setProtocolNegotiationEnabled(protocolNegotiationEnabled: Boolean): Unit

Sets whether ALPN is used on incoming HTTPS connections to negotiate a protocol like HTTP/1.1 or HTTP/2. Call this method to disable negotiation and restrict connections to HTTP/1.1.