get
fun get(path: String, tag: Any? = null, block: UrlRequest.() -> Unit? = null): <ERROR CLASS>
Content copied to clipboard
同步网络请求
Parameters
path
请求路径, 如果其不包含http/https则会自动拼接NetConfig.host
tag
可以传递对象给Request请求, 一般用于在拦截器/转换器中进行针对某个接口行为判断
block
函数中可以配置请求参数