
de.mklinger.commons.httpclient.internal.FileBodyProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of httpclient Show documentation
Show all versions of httpclient Show documentation
HTTP client with support for HTTP/2 and Java 8
package de.mklinger.commons.httpclient.internal;
import java.io.IOException;
import java.nio.file.Path;
import org.eclipse.jetty.client.util.PathContentProvider;
import de.mklinger.commons.httpclient.HttpRequest;
/**
* @author Marc Klinger - mklinger[at]mklinger[dot]de
*/
public class FileBodyProvider extends PathContentProvider implements HttpRequest.BodyProvider {
public FileBodyProvider(Path filePath) throws IOException {
super(filePath);
}
public FileBodyProvider(String contentType, Path filePath) throws IOException {
super(contentType, filePath);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy