All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ejlchina.http.HttpCall Maven / Gradle / Ivy

Go to download

Http工具包,封装 OkHttp,链式用法、支持异步同步、响应JSON自动解析,回调线程切换、配置灵活、支持URL占位符、支持BaseUrl、外部依赖少、适用 JavaWeb 和 Android,教程全面、简单易用

There is a newer version: 2.3.0
Show newest version
package com.ejlchina.http;

public interface HttpCall {

	/**
	 * 取消 Http 请求
	 * @return 是否取消成功
	 */
	boolean cancel();

	/**
	 * @return 请求是否被取消
	 */
	boolean isCanceled();
	
	/**
	 * @return 请求是否执行完成,包含取消和失败
	 */
	boolean isDone();
	
	/**
	 * Waits if necessary for the computation to complete, and then
     * retrieves its result
	 * @return 请求执行结果,若请求未执行完,则阻塞当前线程直到请求执行完成
	 */
	HttpResult getResult();
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy