io.keen.client.java.http.Request Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of keen-client-java-core Show documentation
Show all versions of keen-client-java-core Show documentation
Java Client Core Library for Keen
The newest version!
package io.keen.client.java.http;
import java.net.Proxy;
import java.net.URL;
/**
* Encapsulates an HTTP request.
*
* @author Kevin Litwack ([email protected])
* @since 2.0.0
*/
public final class Request {
///// PROPERTIES /////
public final URL url;
public final String method;
public final String authorization;
public final OutputSource body;
public final Proxy proxy;
public final int connectTimeout;
public final int readTimeout;
///// PUBLIC CONSTRUCTORS /////
@Deprecated
public Request(URL url, String method, String authorization, OutputSource body) {
this(url, method, authorization, body, null, 30000, 30000);
}
public Request(URL url, String method, String authorization, OutputSource body, Proxy proxy, int connectTimeout, int readTimeout) {
this.url = url;
this.method = method;
this.authorization = authorization;
this.body = body;
this.proxy = proxy;
this.connectTimeout = connectTimeout;
this.readTimeout = readTimeout;
}
}