MoHttp 1.2 preview
Pre-release
Pre-release
MoHttp1.2 SNAPSHOT
支持异步http请求:
request.execute(new HttpCallback() {
@Override
public void complete(Response response) throws IOException {
System.out.println(response.string());
}
@Override
public void failed(Throwable e) {
System.out.println("fail!");
}
@Override
public void cancelled() {
System.out.println("cancelled!");
}
});
Maven:
<groupId>io.github.xcr1234</groupId>
<artifactId>moHttp</artifactId>
<version>1.2-SNAPSHOT</version>
TODO:
- http async client support
- header constants
bug fix