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

io.femo.http.HttpDrivers 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.drivers.AsynchronousDriver;
import io.femo.http.drivers.DefaultDriver;

/**
 * Created by felix on 2/9/16.
 */
public final class HttpDrivers {

    public static HttpDriver defaultDriver() {
        return new DefaultDriver();
    }

    public static HttpDriver asyncDriver() {
        return new AsynchronousDriver();
    }

    public static HttpDriver asyncDriver(int threads) {
        return new AsynchronousDriver(threads);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy