// Path: CoolHttp/app/src/main/java/com/yanzhenjie/coolhttp/http/execute/HttpExecutor.java
// public interface HttpExecutor {
// 
//     HttpURLConnection openUrl(URL url, Proxy proxy) throws IOException;
// 
// }


import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLSocketFactory;
import android.util.Log;
import com.yanzhenjie.coolhttp.http.execute.HttpExecutor;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.Proxy;
import java.net.URL;
import java.util.List;
import java.util.Map;
import java.util.logging.Logger;
import java.util.zip.GZIPInputStream;
/*
 * Copyright © Yan Zhenjie. All Rights Reserved
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.yanzhenjie.coolhttp.http;





/**
 * Created by Yan Zhenjie on 2016/12/18.
 */
public class HttpRequestTask {

    private HttpExecutor httpExecutor;

// Path: CoolHttp/app/src/main/java/com/yanzhenjie/coolhttp/http/execute/HttpExecutor.java
// public interface HttpExecutor {
// 
//     HttpURLConnection openUrl(URL url, Proxy proxy) throws IOException;
// 
// }


// Path: CoolHttp/app/src/main/java/com/yanzhenjie/coolhttp/http/HttpRequestTask.java
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLSocketFactory;
import android.util.Log;
import com.yanzhenjie.coolhttp.http.execute.HttpExecutor;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.Proxy;
import java.net.URL;
import java.util.List;
import java.util.Map;
import java.util.logging.Logger;
import java.util.zip.GZIPInputStream;

/*
 * Copyright © Yan Zhenjie. All Rights Reserved
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.yanzhenjie.coolhttp.http;





/**
 * Created by Yan Zhenjie on 2016/12/18.
 */
public class HttpRequestTask {

    private HttpExecutor httpExecutor;

    public HttpRequestTask(HttpExecutor httpExecutor) {