WSTestClient

org.http4s.client.testkit.WSTestClient$
object WSTestClient

Attributes

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

Members list

Type members

Classlikes

Attributes

Source
WSTestClient.scala
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

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.

Value parameters

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.

Attributes

Source
WSTestClient.scala