Http Statement
interface HttpStatement : ObjectWrapper<ERROR CLASS: Symbol not found for io.ktor.client.statement.HttpStatement>
脚本层包装的 HttpStatement,提供带作用域的异步执行能力。
与原生 io.ktor.client.statement.HttpStatement 相比, 本接口通过 CoroutineScope 与 Deferred 实现脚本友好的异步调用。
Author
M8Test, [email protected], https://m8test.com
Functions
Link copied to clipboard
abstract fun also(block: (ERROR CLASS: Symbol not found for io.ktor.client.statement.HttpStatement) -> Unit): ObjectWrapper<ERROR CLASS: Symbol not found for io.ktor.client.statement.HttpStatement>
对 ObjectWrapper
Link copied to clipboard
abstract fun apply(block: ERROR CLASS: Symbol not found for io.ktor.client.statement.HttpStatement.() -> Unit): ObjectWrapper<ERROR CLASS: Symbol not found for io.ktor.client.statement.HttpStatement>
对 ObjectWrapper
Link copied to clipboard
abstract fun <T> execute(scope: CoroutineScope, block: (scope: CoroutineScope, response: HttpClientResponse) -> Deferred<T>): Deferred<T>
在指定协程作用域内流式执行请求,并把响应交给 block 处理。
Link copied to clipboard
abstract fun takeIf(predicate: (ERROR CLASS: Symbol not found for io.ktor.client.statement.HttpStatement) -> Boolean): ObjectWrapper<ERROR CLASS: Symbol not found for io.ktor.client.statement.HttpStatement>?
如果 ObjectWrapper
Link copied to clipboard
abstract fun takeUnless(predicate: (ERROR CLASS: Symbol not found for io.ktor.client.statement.HttpStatement) -> Boolean): ObjectWrapper<ERROR CLASS: Symbol not found for io.ktor.client.statement.HttpStatement>?
如果 ObjectWrapper