light weight dsl to make simple http requests easier with android
- Add library files to your project
- Add permission for internet access in the project manifest file:
String response = new HttpDsl.Request("some-url.com").get().response().toString(); // get request
String response = new HttpDsl.Request("some-url.com").post().response().toString(); // post request
String response = String response = new HttpDsl.Request("some-url.com").param("id","32").get().response().toString();
new HttpDsl.Request("some-url.com").post(new HttpDsl.Request.Listener() {
@Override
public void onSuccess(HttpDsl.Response response) {
Log.d("http-dsl", response.toString());
}
});