URLProtocol
data class URLProtocol
Represents URL protocol
Constructors
Represents URL protocol |
Properties
val defaultPort: Int default port for protocol or |
|
val name: String of protocol (schema) |
Companion Object Properties
val HTTP: URLProtocol HTTP with port 80 |
|
val HTTPS: URLProtocol secure HTTPS with port 443 |
|
val WS: URLProtocol Web socket over HTTP on port 80 |
|
val WSS: URLProtocol Web socket over secure HTTPS on port 443 |
|
val byName: Map<String, URLProtocol> Protocols by names map |
Companion Object Functions
fun createOrDefault(name: String): URLProtocol Create an instance by name or use already existing instance |
Extension Functions
fun URLProtocol.isSecure(): Boolean Check if the protocol is secure |
|
fun URLProtocol.isWebsocket(): Boolean Check if the protocol is websocket |