JdkWSClient

org.http4s.jdkhttpclient.JdkWSClient$

A WSClient wrapper for the JDK 11+ websocket client. It will reply to Pongs with Pings even in "low-level" mode. Custom (non-GET) HTTP methods are ignored.

Attributes

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

Members list

Concise view

Value members

Concrete methods

def apply[F[_]](jdkHttpClient: HttpClient)(implicit F: Async[F]): WSClient[F]

Create a new WSClient backed by a JDK 11+ http client.

Create a new WSClient backed by a JDK 11+ http client.

Attributes

Source:
JdkWSClient.scala
def simple[F[_]](implicit F: Async[F]): F[WSClient[F]]

A WSClient wrapping the default HttpClient.

A WSClient wrapping the default HttpClient.

Attributes

Source:
JdkWSClient.scala