Scheme

zio.http.Scheme
See theScheme companion trait
object Scheme

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Scheme.type

Members list

Type members

Classlikes

sealed abstract case class Custom extends Scheme

Value parameters

scheme

value MUST not be "http" "https" "ws" "wss"

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Scheme
class Object
trait Matchable
class Any
Show all
case object HTTP extends Scheme

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Scheme
class Object
trait Matchable
class Any
Show all
Self type
HTTP.type
case object HTTPS extends Scheme

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Scheme
class Object
trait Matchable
class Any
Show all
Self type
HTTPS.type
case object WS extends Scheme

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Scheme
class Object
trait Matchable
class Any
Show all
Self type
WS.type
case object WSS extends Scheme

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Scheme
class Object
trait Matchable
class Any
Show all
Self type
WSS.type

Value members

Concrete methods

def decode(scheme: String): Option[Scheme]

Decodes a string to an Option of Scheme. Returns None in case of null/non-valid Scheme

Decodes a string to an Option of Scheme. Returns None in case of null/non-valid Scheme

The should be lowercase and follow this syntax:

  • Scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )

Attributes

def defaultPortForWS: Int