WebSocketOrigin
object WebSocketOriginConstructors and strict parsing for WebSocketOrigin.
Defined by scalive.WebSocketOrigin. View source (scalive/transport/zio-http/src/scalive/WebSocketOrigin.scala:42-226)
Methods5
http
def http(host: String, port: Int = ...): WebSocketOriginCreates an HTTP origin from trusted program input.
Throws
ValidationExceptionwhen the host or port is invalid
Defined by scalive.WebSocketOrigin.http. View source (scalive/transport/zio-http/src/scalive/WebSocketOrigin.scala:84-85)
httpEither
def httpEither(host: String, port: Int = ...): Either[WebSocketOrigin.Error, WebSocketOrigin]Creates an HTTP origin with dynamic host or port failures in the typed error channel.
Defined by scalive.WebSocketOrigin.httpEither. View source (scalive/transport/zio-http/src/scalive/WebSocketOrigin.scala:96-97)
https
def https(host: String, port: Int = ...): WebSocketOriginCreates an HTTPS origin from trusted program input.
Throws
ValidationExceptionwhen the host or port is invalid
Defined by scalive.WebSocketOrigin.https. View source (scalive/transport/zio-http/src/scalive/WebSocketOrigin.scala:92-93)
httpsEither
def httpsEither(host: String, port: Int = ...): Either[WebSocketOrigin.Error, WebSocketOrigin]Creates an HTTPS origin with dynamic host or port failures in the typed error channel.
Defined by scalive.WebSocketOrigin.httpsEither. View source (scalive/transport/zio-http/src/scalive/WebSocketOrigin.scala:100-101)
parse
def parse(value: String): Either[WebSocketOrigin.Error, WebSocketOrigin]Strictly parses one serialized browser origin for deployment configuration or admission.
User information, paths, queries, fragments, opaque origins, Unicode hosts, surrounding whitespace, and non-HTTP schemes are rejected.
Defined by scalive.WebSocketOrigin.parse. View source (scalive/transport/zio-http/src/scalive/WebSocketOrigin.scala:108-145)