TypedRestClient
class TypedRestClient<E : ErrorSpec>(json: Json, baseUrl: String = "", client: HttpClient = HttpClientFactory.create(json = json), mapError: context(Raise<RestClientErrorSpec>) suspend HttpResponse.() -> RestClientErrorSpec, val transform: (RestClientErrorSpec) -> E)(source)
Constructors
Link copied to clipboard
constructor(json: Json, baseUrl: String = "", client: HttpClient = HttpClientFactory.create(json = json), mapError: context(Raise<RestClientErrorSpec>) suspend HttpResponse.() -> RestClientErrorSpec, transform: (RestClientErrorSpec) -> E)