Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
o

ExternalUrl

object ExternalUrl

Constructors for ExternalUrl.

Defined by scalive.ExternalUrl. View source (scalive/api/src/scalive/ExternalUrl.scala:28-56)

Methods2

from

def from(url: zio.http.URL): Either[IllegalArgumentException, ExternalUrl]

Checks that url is an external URL.

Parameters

url

an absolute http or https URL with a host, without control characters

Returns

Returns

the URL, or why it is not an external URL

Defined by scalive.ExternalUrl.from. View source (scalive/api/src/scalive/ExternalUrl.scala:50-56)

parse

def parse(text: String): Either[IllegalArgumentException, ExternalUrl]

Parses an external URL.

Parameters

text

an absolute http or https URL with a host, without control characters

Returns

Returns

the URL, or why it is not an external URL

Defined by scalive.ExternalUrl.parse. View source (scalive/api/src/scalive/ExternalUrl.scala:36-41)