HTTP
request easier operation.
Maven ArtifactId
<dependency>
<groupId>io.github.biezhi</groupId>
<artifactId>oh-my-request</artifactId>
<version>0.0.1</version>
</dependency>
String body = Request.get("https://github.com/opensearch.xml").body();
System.out.println(body);
Request.get("https://avatars3.githubusercontent.com/u/3849072?v=3&s=460")
.receive(new File("D:/avatar.png"));
Request.post("http://xxxx.com")
.form("name", "jack")
.body();
Request.get("http://xxxx.com")
.header("User-Agent", "Mozilla/5.0 (Windows NT 10.0; WOW64) xxxx")
.body();