public interface Callback<T>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
callback(LeonaException e,
T data)
异步http请求callback方法
http status code > 300时, httpClient将responseBody封装为LeonaException
使用LeonaException中方法获取http请求失败的原因, 例如
leonaClient.qrCodePay(req, (e, data) -> {
if (e !
|
void callback(LeonaException e, T data)
e - data - Copyright © 2020. All rights reserved.