infrastructure.http
Members list
Type members
Classlikes
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
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 Objecttrait Matchableclass Any
- Self type
-
HttpClient.type