Skip to content

liangruisen/simple_httpapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple_httpapi

A Simple JAVA http client api

一个简单的Java http client 调用 api,暂时不支持文件上传

使用示例如下:

SimpleHttp simpleHttp = SimpleHttpFactory.getSimpleHttp();

String urlstring = "http://www.xxxx.com";

SimpleResponse response = simpleHttp.get(urlstring);

if(response.isSuccessful()){

	String htmlContent = response.getString();

}

可选择使用httpclient/okhttp/HttpURLConnection的具体实现http请求

About

A Simple JAVA http client api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages