URLProtocol

data class URLProtocol(name: String, defaultPort: Int)

Represents URL protocol

Constructors

Link copied to clipboard
fun URLProtocol(name: String, defaultPort: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val defaultPort: Int

default port for protocol or -1 if not known

Link copied to clipboard
val name: String

of protocol (schema)

Extensions

Link copied to clipboard
fun URLProtocol.isSecure(): Boolean

Check if the protocol is secure

Link copied to clipboard
fun URLProtocol.isWebsocket(): Boolean

Check if the protocol is websocket