All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.femo.http.Main Maven / Gradle / Ivy

Go to download

An easy to use HTTP API, that supports synchronous and asynchronous execution of HTTP request. On android only asynchronous driver is supported.

There is a newer version: 0.0.3
Show newest version
package io.femo.http;

import java.io.IOException;
import java.net.URL;

/**
 * Created by felix on 1/18/16.
 */
public class Main {

    public static void main(String[] args) {
        try {
            HttpResponse response = Http.get(new URL("http://httpbin.org/get")).execute().response();
            System.out.println(response.responseString());
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy