自动化立体仓库 - WMS系统
13
zhang
4 天以前 82de5a307466894bbb0258f8a63a26a7bb96d80d
src/main/java/com/zy/common/utils/HttpHandler.java
@@ -10,6 +10,7 @@
/**
 * Http协议客户端
 *
 * @author luxiaotao
 * @date 2018-9-27
 */
@@ -40,6 +41,7 @@
    /**
     * GET请求执行
     *
     * @return the HttpHandler response
     */
    public String doGet() throws IOException {
@@ -57,6 +59,7 @@
    /**
     * POST请求执行
     *
     * @return the HttpHandler response
     */
    public String doPost() throws IOException {
@@ -92,6 +95,7 @@
    /**
     * get请求参数拼接方法
     *
     * @return 请求行
     */
    private String paramsToUrl(String uri, String path, Map<String, Object> params, boolean isHttps) {
@@ -122,6 +126,7 @@
    /**
     * 获取 okHttpClient
     *
     * @return the HttpHandler instance
     */
    private OkHttpClient getClient(Integer timeout, TimeUnit timeUnit){
@@ -155,6 +160,7 @@
        /**
         * 建造器
         *
         * @return the HttpHandler instance
         */
        public HttpHandler build(){