post
suspend fun post(apiPath: String, headers: Map<String, Any>? = FetchDefaults.Headers, body: ByteArray? = null, redirect: RequestRedirect? = FetchDefaults.Redirect, abortController: AbortController? = null): ByteArray(source)
Deprecated
DO NOT IGNORE. Please change to `postBytes` instead. This method will be modified soon in a backwards incompatible way, in order to support additional cases that the current form doesn't support.
Replace with
postBytes(apiPath, headers, body, redirect, abortController)Content copied to clipboard
Call POST on a target API path.
See also tryPost, which will return null if the request fails for any reason.
Note: you should NOT prepend your path with "api/", as that will be added automatically.