open fun <T : Any> call(request: HttpRequest, serializer: KSerializer<T>?): HttpResponse<T>
Makes an HTTP request call, and serializes response.
request
- the HTTP request object.
serializer
- the result data serializer.
Return
the HTTP response object.
open fun <T : Any> call(request: HttpRequest, serializer: KSerializer<T>?, success: (result: HttpResponse<T>) -> Unit, failure: (Exception) -> Unit): Unit
Makes an HTTP request call, and serializes response.
request
- the HTTP request object.
serializer
- the result data serializer.