protocol

fun protocol(protocol: String?): URLProtocol

Return

a URLProtocol based on the given protocol

Parameters

protocol

passed protocol as String. This will return https as default given null or empty or illegal protocol