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

io.femo.http.Transport 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. This library has been backported to jdk 7 to retain compatibility with android!

The newest version!
package io.femo.http;

import io.femo.http.transport.HttpTransport;
import io.femo.http.transport.HttpsTransport;

import java.io.IOException;
import java.net.Socket;

/**
 * Created by felix on 9/10/15.
 */
public interface Transport {

    Transport HTTP = new HttpTransport();
    Transport HTTPS = new HttpsTransport();

    Socket openSocket(String host, int port) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy