post

abstract fun post(url: String, payload: DataObject?, additionalHeaders: Map<String, String>? = null, completion: NetworkCallback<NetworkResult>): Disposable
abstract fun post(url: URL, payload: DataObject?, additionalHeaders: Map<String, String>? = null, completion: NetworkCallback<NetworkResult>): Disposable

Asynchronously POSTs the payload to the given url.

The payload is always sent uncompressed. For GZIP compression, or any other non-standard request requirements, use the NetworkClient directly.

Parameters

url

The Url to POST to

payload

The body to be POSTed

additionalHeaders

Optional map of additional headers to add to the request