package com.kmall.admin.haikong.utils; import org.apache.http.client.methods.HttpEntityEnclosingRequestBase; import java.net.URI; /** * 带请求体的get请求 * @author lhm * @createDate 2021-10-30 */ public class HttpGetWithEntity extends HttpEntityEnclosingRequestBase { private static final String METHOD = "GET"; @Override public String getMethod() { return METHOD; } public HttpGetWithEntity() { super(); } public HttpGetWithEntity(final String url) { super(); setURI(URI.create(url)); } }