We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a785a7d commit d17b8d5Copy full SHA for d17b8d5
1 file changed
java/README.md
@@ -0,0 +1,21 @@
1
+# HTTP请求工具类
2
+
3
+此工具类是对apache的httpClient的简单包装。
4
5
+通过此工具类,能够轻松初始化http的连接池,生成httpClient的实例,并发送get和post请求。
6
7
+本工具对apache的httpClient的常用参数做了封装,比如获取连接超时时间、请求等待超时时间等,如果不满足需要,可以自行扩展。
8
9
+HttpClient类中,封装的doGet和doPost方法是根据本人的需要做的封装,如果不满足需要,可以自行封装。
10
11
+依赖的jar包为:
12
13
+```
14
+<dependency>
15
+ <groupId>org.apache.httpcomponents</groupId>
16
+ <artifactId>httpclient</artifactId>
17
+ <version>4.3.3</version>
18
+</dependency>
19
20
21
+只对此版本做了测试,其他版本未测试。
0 commit comments