mockwebserver / okhttp3.mockwebserver / MockWebServer / useHttps

useHttps

fun useHttps(sslSocketFactory: SSLSocketFactory!, tunnelProxy: Boolean): Unit

Serve requests with HTTPS rather than otherwise.

Parameters

tunnelProxy - Boolean: true to expect the HTTP CONNECT method before negotiating TLS.