public class CurlClient
extends org.apache.hc.client5.http.impl.classic.CloseableHttpClient
| Constructor and Description |
|---|
CurlClient(java.io.File postDir) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
close(org.apache.hc.core5.io.CloseMode closeMode) |
protected org.apache.hc.client5.http.impl.classic.CloseableHttpResponse |
doExecute(org.apache.hc.core5.http.HttpHost target,
org.apache.hc.core5.http.ClassicHttpRequest request,
org.apache.hc.core5.http.protocol.HttpContext context) |
public CurlClient(java.io.File postDir)
postDir - POST data is written to this directory if binary or too large to
fit on the commandline.public void close(org.apache.hc.core5.io.CloseMode closeMode)
public void close()
throws java.io.IOException
java.io.IOExceptionprotected org.apache.hc.client5.http.impl.classic.CloseableHttpResponse doExecute(org.apache.hc.core5.http.HttpHost target,
org.apache.hc.core5.http.ClassicHttpRequest request,
org.apache.hc.core5.http.protocol.HttpContext context)
throws java.io.IOException
doExecute in class org.apache.hc.client5.http.impl.classic.CloseableHttpClientjava.io.IOException