WSTestClient
org.http4s.client.testkit.WSTestClient$
object WSTestClient
Attributes
- Source:
- WSTestClient.scala
- Graph
- Supertypes
- Self type
- WSTestClient.type
Members list
Concise view
Type members
Classlikes
Attributes
- Source:
- WSTestClient.scala
- Graph
- Supertypes
- class RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
Value members
Concrete methods
Attributes
- Source:
- WSTestClient.scala
def fromHttpWebSocketApp[F[_] : Concurrent](respondToPings: Boolean)(f: WebSocketBuilder2[F] => HttpApp[F]): F[WSClient[F]]
Creates a WSClient from the specified HttpApp. org.http4s.server.websocket.WebSocketBuilder2 is used for specifying the WebSocket connection. Useful for generating pre-determined responses for requests in testing.
Creates a WSClient from the specified HttpApp. org.http4s.server.websocket.WebSocketBuilder2 is used for specifying the WebSocket connection. Useful for generating pre-determined responses for requests in testing.
Attributes
- f
a function that takes a org.http4s.server.websocket.WebSocketBuilder2 and returns an HttpApp.
- respondToPings
if true, the client will respond to ping frames with a pong frame.
- Source:
- WSTestClient.scala