Skip to content

MoHttp 1.2 preview

Pre-release
Pre-release
Compare
Choose a tag to compare
@xcr1234 xcr1234 released this 28 Oct 09:37
· 5 commits to master since this 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