infrastructure.http

Members list

Type members

Classlikes

class HttpClient[F[_]](client: Client[F], baseUri: Uri)(implicit evidence$1: Async[F]) extends Http4sClientDsl[F]

A generic HTTP client for making RESTful API requests.

A generic HTTP client for making RESTful API requests.

This client provides methods for performing standard HTTP operations (GET, POST, PUT, DELETE) and supports JSON encoding/decoding using Circe. Requests are constructed relative to the specified base URI, and responses are returned as effectful computations in the specified effect type.

Type parameters

F

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

Value parameters

baseUri

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

client

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

Attributes

Companion
object
Source
HttpClient.scala
Supertypes
trait Http4sClientDsl[F]
class Object
trait Matchable
class Any
object HttpClient

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.

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