Skip to content

Commit

Permalink
📝 更新 README
Browse files Browse the repository at this point in the history
  • Loading branch information
xkcoding committed Sep 14, 2021
1 parent 0ef331c commit a24c73a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ HttpUtil.setConfig(HttpConfig.builder()
.timeout(Constants.DEFAULT_TIMEOUT)
.proxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("127.0.0.1", 10080)))
.build());
String s = HttpUtil.get("https://www.google.com");
System.out.println("s = " + s);
SimpleHttpResponse response = HttpUtil.get("https://www.google.com");
System.out.println("code = " + response.getCode());
System.out.println("body = " + response.getBody());
```

## TODO

- [x] ~~集成 JDK11 的 HTTPClient~~(感谢[@春哥](https://github.com/ChunMengLu)[PR#1](https://github.com/xkcoding/simple-http/pull/1))
- [x] ~~支持代理~~(感谢[@亚东](https://github.com/zhangyd-c)[PR#7](https://github.com/xkcoding/simple-http/pull/7))
- [x] ~~Response 封装~~(感谢[@小海](https://github.com/Mvbbb)[PR#11](https://github.com/xkcoding/simple-http/pull/11))

0 comments on commit a24c73a

Please sign in to comment.