secure

abstract fun secure(secure: Boolean): PNConfiguration.Builder

If set to true, requests will be made over HTTPS.

Deafults to true.


abstract val secure: Boolean

If set to true, requests will be made over HTTPS.

Defaults to true. Keep true for HTTP/2 — HTTP/2 is only negotiated over TLS via ALPN; OkHttp does not support HTTP/2 over cleartext (h2c).