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

io.github.saoxuequ.http.request.core.Request Maven / Gradle / Ivy

package io.github.saoxuequ.http.request.core;

import io.github.saoxuequ.http.request.common.Readable;

import java.net.URI;
import java.util.List;
import java.util.Map;

public class Request {

    private final String method;
    private final URI uri;

    private final Map> headers;

    private final Readable responseReader;

    public Request(String method, URI uri, Map> headers, Readable responseReader) {
        this.method = method;
        this.uri = uri;
        this.headers = headers;
        this.responseReader = responseReader;
    }

    public String getMethod() {
        return method;
    }

    public URI getUri() {
        return uri;
    }

    public Map> getHeaders() {
        return headers;
    }

    public Readable getResponseReader() {
        return responseReader;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy