zio.http

package zio.http

Type members

Classlikes

case class TestChannel(counterpartEvents: Queue[Event[WebSocketFrame]]) extends WebSocketChannel
Companion:
object
Companion:
class
final case class TestClient(behavior: Ref[HttpApp[Any, Throwable]], serverSocketBehavior: Ref[SocketApp[Any]]) extends Client

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

Companion:
object
object TestClient
Companion:
class
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

Companion:
object
object TestServer
Companion:
class