post

fun post(destination: String, payload: String): HttpRequest.Builder
fun post(destination: URL, payload: String): HttpRequest.Builder

Utility method for building a simple POST request.

Parameters

destination

The url to be POSTed to

payload

The body of the POST request

gzip

true to gzip compress the payload; otherwise false