http top-level property

HttpUtil http
final

全局 HTTP 请求实例(简化调用) 使用方式:http.send(method: hm.post, path: '/api/user', ...) 注意:使用前必须先调用 HttpUtil.configure() 进行配置

Implementation

final http = HttpUtil.instance;