io.leopard.httpnb.HttpHeader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leopard-boot-httpnb Show documentation
Show all versions of leopard-boot-httpnb Show documentation
Http操作类库。支持Get、Post、文件上传等常用操作。可在TopNB查看耗时统计信息。
The newest version!
package io.leopard.httpnb;
import java.io.IOException;
import java.net.HttpURLConnection;
public interface HttpHeader {
void setTimeout(long timeout);
long getTimeout();
void setCookie(String cookie);
void setMethod(String method);
HttpURLConnection openConnection(String url) throws IOException;
void addParam(Param param);
void setUserAgent(String userAgent);
}