prepareForm
inline suspend fun HttpClient.prepareForm(formParameters: Parameters = Parameters.Empty, encodeInQuery: Boolean = false, block: HttpRequestBuilder.() -> Unit = {}): HttpStatement
Content copied to clipboard
Prepare formParameters request.
If encodeInQuery specified encode formParameters in url parameters and use HttpMethod.Get for the request. Otherwise send HttpMethod.Post request with formParameters encoded in body.
formParameters encoded using application/x-www-form-urlencoded format.
suspend fun HttpClient.prepareForm(url: String, formParameters: Parameters = Parameters.Empty, encodeInQuery: Boolean = false, block: HttpRequestBuilder.() -> Unit = {}): HttpStatement
Content copied to clipboard
Prepare formParameters request.
If encodeInQuery specified encode formParameters in url parameters and use HttpMethod.Get for the request. Otherwise send HttpMethod.Post request with formParameters encoded in body.
url destination formParameters encoded using application/x-www-form-urlencoded format.