net / com.drake.net / kotlinx.coroutines.CoroutineScope / Get
inline fun <reified M> CoroutineScope.Get(path:
String
, tag:
Any
? = null, noinline block: (
UrlRequest
.() ->
Unit
)? = null): Deferred<M>
异步网络请求
path
- 请求路径, 如果其不包含http/https则会自动拼接NetConfig.host
tag
- 可以传递对象给Request, 一般用于在拦截器/转换器中进行针对某个接口行为判断
block
- 函数中可以配置请求参数