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
Functions
Link copied to clipboard
Executes this statement and download the response. After the method finishes, the client downloads the response body in memory and release the connection.
Link copied to clipboard
Executes this statement and run HttpClient.responsePipeline with the response and expected type T.
inline suspend fun <T, R> receive(crossinline block: suspend (T) -> R): R
Content copied to clipboard
Executes this statement and run the block with a HttpClient.responsePipeline execution result.