class HttpStatement
Prepared statement for http client request. This statement doesn't perform any network requests until execute method call.
HttpStatement is safe to execute multiple times.
HttpStatement(builder: HttpRequestBuilder, client: HttpClient)
Prepared statement for http client request. This statement doesn't perform any network requests until execute method call. |
suspend fun <T> execute(block: suspend (response: HttpResponse) -> T): T
Executes this statement and call the block with the streaming response. suspend fun execute(): HttpResponse
Executes this statement and download the response. After the method finishes, the client downloads the response body in memory and release the connection. |
|
suspend fun <T> receive(): T
Executes this statement and run HttpClient.responsePipeline with the response and expected type T. suspend fun <T, R> receive(block: suspend (response: T) -> R): R
Executes this statement and run the block with a HttpClient.responsePipeline execution result. |
|
fun toString(): String |
val HttpStatement. |
fun <T> HttpStatement. |