JdkHttpClient

class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[F[_]](jdkHttpClient: HttpClient, ignoredHeaders: Set[CIString])(F: ConcurrentEffect[F], CS: ContextShift[F]): Client[F]

Creates a Client from an HttpClient. Note that the creation of an HttpClient is a side effect.

Creates a Client from an HttpClient. Note that the creation of an HttpClient is a side effect.

Value Params
ignoredHeaders

A set of ignored request headers. Some headers (like Content-Length) are "restricted" and cannot be set by the user. By default, the set of restricted headers of the OpenJDK 11 is used.

jdkHttpClient

The HttpClient.

def convertHttpVersionFromHttp4s[F[_]](version: HttpVersion)(F: ApplicativeError[F, Throwable]): F[Version]
def simple[F[_]](F: ConcurrentEffect[F], CS: ContextShift[F]): F[Client[F]]

A Client wrapping the default HttpClient.

A Client wrapping the default HttpClient.