-
- All Implemented Interfaces:
public interface HttpClientRepresents an abstract async HTTP-request dispatcher.
-
-
Method Summary
Modifier and Type Method Description abstract <T extends Any> Unitsend(HttpRequest<T> request, Function1<Result<HttpResponse<T>>, Unit> callback)Sends HTTP-request asynchronously. -
-
Method Detail
-
send
abstract <T extends Any> Unit send(HttpRequest<T> request, Function1<Result<HttpResponse<T>>, Unit> callback)
Sends HTTP-request asynchronously.
- Parameters:
request- request to be sent.callback- callback with a Result type to be invoked upon completion
-
-
-
-