APISonar


org.xutils.x.http

> org > xutils > x > http
org APIs xutils APIs x APIs http APIs

Example 1
public static <T> Cancelable Post(String url,Map<String,Object> map,CommonCallback<T> callback){
		RequestParams params=new RequestParams(url);
		if(null!=map){
			for(Map.Entry<String, Object> entry : map.entrySet()){
				params.addParameter(entry.getKey(), entry.getValue());
			}
		}
		Cancelable cancelable = x.http().get(params, callback);
		return cancelable;
	}
Example 2
static Cancelable doLoadFile(final String url,
                                 final ImageOptions options,
                                 final Callback.CacheCallback<File> callback) {
        if (TextUtils.isEmpty(url)) {
            postArgsException(null, options, "url is null", callback);
            return null;
        }

        RequestParams params = createRequestParams(null, url, options);
        return x.http().get(params, callback);
    }