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

io.keen.client.java.http.Request Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show 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 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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy