HttpClient

infrastructure.http.HttpClient
See theHttpClient companion class
object HttpClient

Creates a new HttpClient instance.

Type parameters

F

The effect type (e.g., IO, Future, etc.) that supports asynchronous computations.

Value parameters

baseUri

The base URI for all API requests made by the client.

client

The underlying HTTP client instance used to send requests and receive responses.

Attributes

Returns

A new HttpClient instance configured with the given client and base URI.

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

Members list

Value members

Concrete methods

def resource[F[_] : Async](client: Client[F], baseUri: Uri): HttpClient[F]

Creates a new HttpClient instance.

Creates a new HttpClient instance.

Type parameters

F

The effect type (e.g., IO, Future, etc.) that supports asynchronous computations.

Value parameters

baseUri

The base URI for all API requests made by the client.

client

The underlying HTTP client instance used to send requests and receive responses.

Attributes

Returns

A new HttpClient instance configured with the given client and base URI.

Source
HttpClient.scala