Class Request
java.lang.Object
org.apache.http.client.fluent.Request
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()addHeader(org.apache.http.Header header) / HTTP header operationsbody(org.apache.http.HttpEntity entity) / HTTP entity operationsbodyByteArray(byte[] b) bodyByteArray(byte[] b, int off, int len) bodyByteArray(byte[] b, int off, int len, org.apache.http.entity.ContentType contentType) bodyByteArray(byte[] b, org.apache.http.entity.ContentType contentType) bodyForm(org.apache.http.NameValuePair... formParams) bodyStream(InputStream inStream) bodyStream(InputStream inStream, org.apache.http.entity.ContentType contentType) bodyString(String s, org.apache.http.entity.ContentType contentType) Deprecated.(4.3)connectTimeout(int timeout) static Requeststatic RequestelementCharset(String charset) Deprecated.(4.3)execute()static Requeststatic Requeststatic Requeststatic Requeststatic Requeststatic Requeststatic Requeststatic Requeststatic Requeststatic Requeststatic Requeststatic RequestremoveConfig(String param) Deprecated.(4.3)removeHeader(org.apache.http.Header header) removeHeaders(String name) setCacheControl(String cacheControl) setHeader(org.apache.http.Header header) setHeaders(org.apache.http.Header... headers) setIfModifiedSince(Date date) setIfUnmodifiedSince(Date date) socketTimeout(int timeout) / HTTP connection parameter operationsstaleConnectionCheck(boolean b) Deprecated.(4.4)toString()static Requeststatic Requestversion(org.apache.http.HttpVersion version) / HTTP protocol parameter operationsviaProxy(org.apache.http.HttpHost proxy) / HTTP connection route operations
-
Field Details
-
DATE_FORMAT
- See Also:
-
DATE_LOCALE
-
TIME_ZONE
-
-
Method Details
-
Get
-
Get
-
Head
-
Head
-
Post
-
Post
-
Patch
-
Patch
-
Put
-
Put
-
Trace
-
Trace
-
Delete
-
Delete
-
Options
-
Options
-
execute
- Throws:
org.apache.http.client.ClientProtocolExceptionIOException
-
abort
- Throws:
UnsupportedOperationException
-
addHeader
/ HTTP header operations -
setHeader
- Since:
- 4.3
-
addHeader
-
setHeader
-
removeHeader
-
removeHeaders
-
setHeaders
-
setCacheControl
-
setDate
-
setIfModifiedSince
-
setIfUnmodifiedSince
-
config
Deprecated.(4.3)This method has no effect. Do not use. -
removeConfig
Deprecated.(4.3)This method has no effect. Do not use. -
version
/ HTTP protocol parameter operations -
elementCharset
Deprecated.(4.3)This parameter can no longer be used at the request level.This method has no effect. Do not use.
-
useExpectContinue
-
userAgent
-
socketTimeout
/ HTTP connection parameter operations -
connectTimeout
-
staleConnectionCheck
Deprecated.(4.4)This method has no effect. Do not use. -
viaProxy
/ HTTP connection route operations -
viaProxy
-
body
/ HTTP entity operations -
bodyForm
-
bodyForm
-
bodyForm
-
bodyString
-
bodyFile
-
bodyByteArray
-
bodyByteArray
- Since:
- 4.4
-
bodyByteArray
-
bodyByteArray
public Request bodyByteArray(byte[] b, int off, int len, org.apache.http.entity.ContentType contentType) - Since:
- 4.4
-
bodyStream
-
bodyStream
-
toString
-