Class Request
java.lang.Object
org.apache.hc.client5.http.fluent.Request
HTTP request used by the fluent facade.
- Since:
- 4.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hc.core5.util.Timeoutstatic final StringDeprecated.This attribute is no longer supported as a part of the public API.static final LocaleDeprecated.This attribute is no longer supported as a part of the public API.private org.apache.hc.core5.http.HttpHostprivate final org.apache.hc.core5.http.ClassicHttpRequestprivate org.apache.hc.core5.util.Timeoutstatic final TimeZoneDeprecated.This attribute is no longer supported as a part of the public API.private Boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddHeader(org.apache.hc.core5.http.Header header) body(org.apache.hc.core5.http.HttpEntity entity) bodyByteArray(byte[] b) bodyByteArray(byte[] b, int off, int len) bodyByteArray(byte[] b, int off, int len, org.apache.hc.core5.http.ContentType contentType) bodyByteArray(byte[] b, org.apache.hc.core5.http.ContentType contentType) bodyForm(org.apache.hc.core5.http.NameValuePair... formParams) bodyStream(InputStream inStream) bodyStream(InputStream inStream, org.apache.hc.core5.http.ContentType contentType) bodyString(String s, org.apache.hc.core5.http.ContentType contentType) connectTimeout(org.apache.hc.core5.util.Timeout timeout) static Requeststatic Requeststatic Requeststatic Requeststatic Requestexecute()execute(CloseableHttpClient client) static Requeststatic Request(package private) org.apache.hc.core5.http.ClassicHttpRequeststatic Requeststatic Request(package private) org.apache.hc.core5.http.ClassicHttpResponseinternalExecute(CloseableHttpClient client, HttpClientContext localContext) static Requeststatic Requeststatic Requeststatic Requeststatic Requeststatic Requeststatic Requeststatic RequestremoveHeader(org.apache.hc.core5.http.Header header) removeHeaders(String name) responseTimeout(org.apache.hc.core5.util.Timeout timeout) setCacheControl(String cacheControl) Deprecated.UsesetDate(Instant)setHeader(org.apache.hc.core5.http.Header header) setHeaders(org.apache.hc.core5.http.Header... headers) setIfModifiedSince(Instant instant) setIfModifiedSince(Date date) Deprecated.setIfUnmodifiedSince(Instant instant) setIfUnmodifiedSince(Date date) Deprecated.toString()static Requeststatic Requestversion(org.apache.hc.core5.http.HttpVersion version) viaProxy(org.apache.hc.core5.http.HttpHost proxy)
-
Field Details
-
DATE_FORMAT
Deprecated.This attribute is no longer supported as a part of the public API.- See Also:
-
DATE_LOCALE
Deprecated.This attribute is no longer supported as a part of the public API. -
TIME_ZONE
Deprecated.This attribute is no longer supported as a part of the public API. -
request
private final org.apache.hc.core5.http.ClassicHttpRequest request -
useExpectContinue
-
connectTimeout
private org.apache.hc.core5.util.Timeout connectTimeout -
responseTimeout
private org.apache.hc.core5.util.Timeout responseTimeout -
proxy
private org.apache.hc.core5.http.HttpHost proxy
-
-
Constructor Details
-
Request
Request(org.apache.hc.core5.http.ClassicHttpRequest request)
-
-
Method Details
-
create
-
create
-
create
-
get
-
get
-
head
-
head
-
post
-
post
-
patch
-
patch
-
put
-
put
-
trace
-
trace
-
delete
-
delete
-
options
-
options
-
internalExecute
org.apache.hc.core5.http.ClassicHttpResponse internalExecute(CloseableHttpClient client, HttpClientContext localContext) throws IOException - Throws:
IOException
-
execute
- Throws:
IOException
-
execute
- Throws:
IOException
-
addHeader
-
setHeader
- Since:
- 4.3
-
addHeader
-
setHeader
- Since:
- 4.3
-
removeHeader
-
removeHeaders
-
setHeaders
-
setCacheControl
-
getRequest
org.apache.hc.core5.http.ClassicHttpRequest getRequest() -
setDate
Deprecated.UsesetDate(Instant) -
setIfModifiedSince
Deprecated. -
setIfUnmodifiedSince
Deprecated. -
setDate
-
setIfModifiedSince
-
setIfUnmodifiedSince
-
version
-
useExpectContinue
-
userAgent
-
connectTimeout
-
responseTimeout
-
viaProxy
-
viaProxy
- Since:
- 4.4
-
body
-
bodyForm
-
bodyForm
-
bodyForm
-
bodyString
-
bodyFile
-
bodyByteArray
-
bodyByteArray
- Since:
- 4.4
-
bodyByteArray
-
bodyByteArray
public Request bodyByteArray(byte[] b, int off, int len, org.apache.hc.core5.http.ContentType contentType) - Since:
- 4.4
-
bodyStream
-
bodyStream
-
toString
-