
io.femo.http.Main Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http Show documentation
Show all versions of http Show documentation
An easy to use HTTP API, that supports synchronous and asynchronous execution of HTTP request.
On android only asynchronous driver is supported.
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