zio.http
package zio.http
Type members
Classlikes
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
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