prepareForm
inline suspend fun HttpClient.prepareForm(formParameters: Parameters = Parameters.Empty, encodeInQuery: Boolean = false, block: HttpRequestBuilder.() -> Unit = {}): HttpStatement
suspend fun HttpClient.prepareForm(url: String, formParameters: Parameters = Parameters.Empty, encodeInQuery: Boolean = false, block: HttpRequestBuilder.() -> Unit = {}): HttpStatement
Prepares a request containing form parameters encoded using the x-www-form-urlencoded
format.
If encodeInQuery is set to true
, form parameters are sent as URL parameters using the GET request. Otherwise, form parameters are sent in a POST request body.