post
suspend fun post(url: URL, body: String, backOffRetry: BackOffRetry = DefaultBackOffRetry(), logger: Logger? = null, headers: Map<String, String> = emptyMap()): HttpResponse
Post request. In order to get value, one has to do dispatcher.launch { result = post(...) use result to do sth }
Return
HttpResponse containing data and error
Parameters
url
: URL - URL of the server
body
: String - json String body
backOffRetry
: BackOffRetry - Retry policy
logger
Logger - logger to log the data
headers
Map
- headers to add the http call