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 Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
object TestChannel
Attributes
- Companion
- class
- Supertypes
- Self type
-
TestChannel.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 Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
object TestClient
Attributes
- Companion
- class
- Supertypes
- 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
object TestServer
Attributes
- Companion
- class
- Supertypes
- Self type
-
TestServer.type
In this article