| 程序包 | 说明 |
|---|---|
| cn.sinlmao.commons.network.http |
| 限定符和类型 | 方法和说明 |
|---|---|
protected ImHttpClientCallback |
ImRequest.getCallback() |
| 限定符和类型 | 方法和说明 |
|---|---|
ImRequest |
ImRequest.setCallback(ImHttpClientCallback callback)
设置是否异步执行请求
Set whether to execute the request asynchronously
请注意,执行异步请求后,您的代码将不会在过程中同步,返回的ImResponse是一个空值,您需要实现ImHttpCallback获得相应正确的ImResponse
Note that after executing an asynchronous request, your code will not be synchronized in the process, the returned ImResponse is a null value, you need to implement ImHttpCallback to get the correct ImResponse
|
Copyright © 2019. All rights reserved.