zio.http

package zio.http

Members list

Type members

Classlikes

case class TestChannel(in: Queue[WebSocketChannelEvent], out: Queue[WebSocketChannelEvent], promise: Promise[Nothing, Unit]) extends WebSocketChannel

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object TestChannel

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class TestClient(behavior: Ref[Routes[Any, Response]], serverSocketBehavior: Ref[WebSocketApp[Any]]) extends Driver[Any, Throwable]

Enables tests that use a client without needing a live Server

Enables tests that use a client without needing a live Server

Value parameters

behavior

Contains the user-specified behavior that takes the place of the usual Server

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Driver[Any, Throwable]
class Object
trait Matchable
class Any
Show all
object TestClient

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
TestClient.type
final case class TestServer(driver: Driver, bindPort: Int) extends Server

Enables tests that make calls against "localhost" with user-specified Behavior/Responses.

Enables tests that make calls against "localhost" with user-specified Behavior/Responses.

Value parameters

bindPort

Port for HTTP interactions

driver

The web driver that accepts our Server behavior

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Server
class Object
trait Matchable
class Any
Show all
object TestServer

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
TestServer.type