post
suspend fun <T> post(url: URL, data: Map<String, Any>?, mapper: CoursesClient.ResponseMapper<T>): T?
Sends a POST request to the given URL and returns the value created by the mapper.
Return
The value created by passing the response to the given mapper.
Parameters
url
A URL.
data
Map of request data. Values can be strings, numbers or files.
mapper
A ResponseMapper that maps the HTTP response to the desired format.
Throws
In case of I/O related errors or non-successful response.