sendPostRequest

abstract suspend fun sendPostRequest(action: NetworkAction, authHeader: String?, body: ByteArray): ByteArray

Sends body to the endpoint action routes to and returns the raw response bytes.

Parameters

action

the step to route; the URL is derived from it.

authHeader

optional bearer token sent as the Authorization header.

body

the request body, sent as application/octet-stream.