HttpStatement
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.
Constructors
HttpStatement( Prepared statement for http client request. This statement doesn’t perform any network requests until execute method call. |
Functions
suspend fun <T> execute( 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. Executes this statement and run the block with a HttpClient.responsePipeline execution result. |
|
fun toString(): String |
Extension Properties
val HttpStatement. |
Extension Functions
fun <T> HttpStatement. |