package cn.wuxia.common.web.httpclient;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
public class HttpAction {
    String url;

    HttpClientMethod method;

    public static HttpAction action(String url, HttpClientMethod method) {
        return new HttpAction(url, method);
    }

    public static HttpAction get(String url) {
        return new HttpAction(url, HttpClientMethod.GET);
    }

    public static HttpAction post(String url) {
        return new HttpAction(url, HttpClientMethod.POST);
    }

}

@@ -113,16 +113,43 @@
 etter;%0A%0A
+/**%0A * @author songlin%0A */%0A
 @Getter%0A

升级版本，系统增强及优化