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 TypeFieldDescriptionstatic 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.static final TimeZoneDeprecated.This attribute is no longer supported as a part of the public API. -
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 Requeststatic Requeststatic Requeststatic 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.
-
-
Method Details
-
create
-
create
-
create
-
get
-
get
-
head
-
head
-
post
-
post
-
patch
-
patch
-
put
-
put
-
trace
-
trace
-
delete
-
delete
-
options
-
options
-
execute
- Throws:
IOException
-
execute
- Throws:
IOException
-
addHeader
-
setHeader
- Since:
- 4.3
-
addHeader
-
setHeader
- Since:
- 4.3
-
removeHeader
-
removeHeaders
-
setHeaders
-
setCacheControl
-
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
-