mockwebserver / okhttp3.mockwebserver / MockWebServer / setProtocols

setProtocols

fun setProtocols(protocols: MutableList<Protocol!>!): Unit

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

Parameters

protocols - MutableList<Protocol!>!: the protocols to use, in order of preference. The list must contain Protocol#HTTP_1_1. It must not contain null.