WSTestClient

org.http4s.client.testkit.WSTestClient$

Attributes

Source:
WSTestClient.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

Attributes

Source:
WSTestClient.scala
Graph
Supertypes
class Exception
class Throwable
class Object
trait Matchable
class Any

Value members

Concrete methods

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