1
0

get.md 790 B

net / com.drake.net / Net / get

get

fun get(path:String, tag:Any? = null, block: (UrlRequest.() ->Unit)? = null): <ERROR CLASS>

同步网络请求

Parameters

path - 请求路径, 如果其不包含http/https则会自动拼接NetConfig.host

tag - 可以传递对象给Request请求, 一般用于在拦截器/转换器中进行针对某个接口行为判断

block - 函数中可以配置请求参数