public static HttpResponse doGetResponse(String host, String path,
                                             Map<String, String> headers,
                                             Map<String, String> queries) throws Exception {
        HttpClient httpClient = wrapClient(host);
        if (queries == null)
            queries = new HashMap<>();

        HttpGet request = new HttpGet(buildUrl(host, path, queries));

        if (headers == null) {
            headers = new HashMap<>();
            setHttpHeader(request);
        }

        for (Map.Entry<String, String> e : headers.entrySet()) {
            request.addHeader(e.getKey(), e.getValue());
        }
        return httpClient.execute(request);
    }
public static HttpResponse doGetResponse ( String host , String path , Map < String , String > headers , Map < String , String > queries ) throws Exception { HttpClient httpClient = wrapClient ( host ) ; if ( queries == null ) queries = new HashMap < > ( ) ; HttpGet request = new HttpGet ( buildUrl ( host , path , queries ) ) ; if ( headers == null ) { headers = new HashMap < > ( ) ; setHttpHeader ( request ) ; } for ( Map . Entry < String , String > e : headers . entrySet ( ) ) { request . addHeader ( e . getKey ( ) , e . getValue ( ) ) ; } return httpClient . execute ( request ) ; }
get

@param host
@param path
@param headers
@param queries
@return
@throws Exception