post
Creates an HTTP POST request to the specified URL.
Return
The created HTTP POST request.
Example usage:
val request = post("https://example.com") {
stringBody("Hello, world!")
}
val response: HttpResponse<String> = request.coSend(ofString)
Content copied to clipboard
Parameters
url
The URL for the HTTP request.
f
A lambda with receiver on CustomHttpRequestBuilder
which allows to build the HTTP request.