// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package ai.vespa.feed.client.impl; import java.time.Duration; import java.util.Map; import java.util.function.Supplier; class HttpRequest { private final String method; private final String path; private final Map> headers; private final byte[] body; private final Duration timeout; public HttpRequest(String method, String path, Map> headers, byte[] body, Duration timeout) { this.method = method; this.path = path; this.headers = headers; this.body = body; this.timeout = timeout; } public String method() { return method; } public String path() { return path; } public Map> headers() { return headers; } public byte[] body() { return body; } public Duration timeout() { return timeout; } @Override public String toString() { return method + " " + path; } }