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
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 CONSTRUCTORS /////
public Request(URL url, String method, String authorization, OutputSource body) {
this(url, method, authorization, body, null);
}
public Request(URL url, String method, String authorization, OutputSource body, Proxy proxy) {
this.url = url;
this.method = method;
this.authorization = authorization;
this.body = body;
this.proxy = proxy;
}
}