mockwebserver / okhttp3.mockwebserver / MockWebServer / setProtocols

setProtocols

fun setProtocols(protocols: List<Protocol>): Unit

Indicates the protocols supported by ALPN on incoming HTTPS connections. This list is ignored when negotiation is disabled.

Parameters

protocols - the protocols to use, in order of preference. The list must contain Protocol.HTTP_1_1. It must not contain null.