package http
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- http
- MdInterpolator
- UrlInterpolator
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- type Client = ZClient[Any, Body, Throwable, Response]
-
implicit
class
MdInterpolatorHelper extends AnyRef
- Definition Classes
- MdInterpolator
- type RequestHandler[-R, +Err] = Handler[R, Err, Request, Response]
- case class TestChannel(in: Queue[WebSocketChannelEvent], out: Queue[WebSocketChannelEvent], promise: Promise[Nothing, Unit]) extends WebSocketChannel with Product with Serializable
-
final
case class
TestClient(behavior: Ref[Routes[Any, Response]], serverSocketBehavior: Ref[WebSocketApp[Any]]) extends http.ZClient.Driver[Any, Throwable] with Product with Serializable
Enables tests that use a client without needing a live Server
Enables tests that use a client without needing a live Server
- behavior
Contains the user-specified behavior that takes the place of the usual Server
-
final
case class
TestServer(driver: Driver, bindPort: Int) extends Server with Product with Serializable
Enables tests that make calls against "localhost" with user-specified Behavior/Responses.
Enables tests that make calls against "localhost" with user-specified Behavior/Responses.
- driver
The web driver that accepts our Server behavior
- bindPort
Port for HTTP interactions
-
implicit
class
UrlInterpolatorHelper extends AnyRef
- Definition Classes
- UrlInterpolator
- type WebSocketChannel = Channel[WebSocketChannelEvent, WebSocketChannelEvent]
- type WebSocketChannelEvent = ChannelEvent[WebSocketFrame]
Value Members
- def Client: ZClient.type
- val Root: PathCodec[Unit]
- def boolean(name: String): PathCodec[Boolean]
- def handler[H](handler: ⇒ H)(implicit h: ToHandler[H]): Handler[Env, Err, In, Out]
- def handlerTODO(message: String): Handler[Any, Nothing, Any, Nothing]
- def int(name: String): PathCodec[Int]
- def long(name: String): PathCodec[Long]
- def string(name: String): PathCodec[String]
- val trailing: PathCodec[Path]
- def uuid(name: String): PathCodec[UUID]
- def withContext[C](fn: ⇒ C)(implicit c: WithContext[C]): ZIO[Env, Err, Out]
- object TestChannel extends Serializable
- object TestClient extends Serializable
- object TestServer extends Serializable