HttpEndpoint
fun <Request, Dto, Response> HttpEndpoint(requestCreator: HttpRequestCreator<Request>, responseReader: HttpResponseReader<Dto>, responseMapper: HttpResponseMapper<Request, Dto, Response>, errorMapper: HttpErrorMapper? = null): HttpEndpoint<Request, Dto, Response>
Creates a HttpEndpoint with given transformation functions.
inline fun <Request, Dto, Response> HttpEndpoint(noinline requestCreator: HttpRequestCreator<Request>, noinline responseMapper: HttpResponseMapper<Request, Dto, Response>, noinline errorMapper: HttpErrorMapper? = null): HttpEndpoint<Request, Dto, Response>
Creates a HttpEndpoint with given transformation functions that reads a Dto form HttpResponse with HttpResponse.body.
inline fun <Request, Response> HttpEndpoint(noinline requestCreator: HttpRequestCreator<Request>, noinline errorMapper: HttpErrorMapper? = null): HttpEndpoint<Request, Response, Response>
Creates a HttpEndpoint with given transformation functions, that reads a Response form HttpResponse with HttpResponse.body and returns it without mapping.